首页 > 编程语言
JavaScript 闭包介绍
闭包是JS学习过程中的难点之一,本文主要介绍一下对闭包的认识。JS中变量的作用域;要理解闭包,先要理解JS中变量的作用域,变量作用域有两种:局部变量和全局变量,JS特殊之处在于,函数内部可以直接读取全局变量。var name="global";function foo(){ alert(name.....
分类:编程语言   时间:2015-12-02 16:09:53    收藏:0  评论:0  赞:0  阅读:277
XML语言基础
XML语言1.什么是XML? 1.1 XML: Extensible Markup Language可扩展标记语言。Xml技术是w3c组织发布的,遵循的是w3c组织的规范。 1.2 XML技术用于解决什么问题? 1 2 3 4 5 ...
分类:编程语言   时间:2015-12-02 16:04:42    收藏:0  评论:0  赞:0  阅读:478
谈谈对Spring IOC的理解
学习过Spring框架的人一定都会听过Spring的IoC(控制反转) 、DI(依赖注入)这两个概念,对于初学Spring的人来说,总觉得IoC 、DI这两个概念是模糊不清的,是很难理解的,今天和大家分享网上的一些技术大牛们对Spring框架的IOC的理解以及谈谈我对Spring Ioc的理解。.....
分类:编程语言   时间:2015-12-02 16:04:12    收藏:0  评论:0  赞:0  阅读:363
在Python中使用base64模块处理字符编码的教程
分类:编程语言   时间:2015-12-02 16:02:12    收藏:0  评论:0  赞:0  阅读:372
Python MySQLdb Linux下安装笔记
分类:编程语言   时间:2015-12-02 16:00:32    收藏:0  评论:0  赞:0  阅读:279
Python中的迭代器漫谈
分类:编程语言   时间:2015-12-02 15:59:12    收藏:0  评论:0  赞:0  阅读:274
python实现DES加密解密方法实例详解
分类:编程语言   时间:2015-12-02 15:58:42    收藏:0  评论:0  赞:0  阅读:278
Python中用PIL库批量给图片加上序号的教程
分类:编程语言   时间:2015-12-02 15:55:42    收藏:0  评论:0  赞:0  阅读:298
归并排序
usingSystem; usingSystem.Collections.Generic; usingSystem.Linq; usingSystem.Text; usingSystem.Threading.Tasks; usingSystem.Collections.Generic; namespaceConsoleApplication4 { classProgram { staticvoidMain(string[]args) { intlen=20; int[]array=newint[len]; R..
分类:编程语言   时间:2015-12-02 14:43:02    收藏:0  评论:0  赞:0  阅读:276
Java中几种常见的循环
多重if_else:package com.dengchaoqun.ht;public class Double_For02 { /** * * 打印乘法表 */ public static void main(String[] args) { for (int i = 1; i < 10...
分类:编程语言   时间:2015-12-02 14:37:52    收藏:0  评论:0  赞:0  阅读:481
C语言优化实例:为了消除嵌套switch-case聪明的做法
我们有可能会写出或者遇到类似这种代码:C/C++ switch (expr1) { case label11: switch (expr2) { case label21: // do something ...
分类:编程语言   时间:2015-12-02 14:35:32    收藏:0  评论:0  赞:0  阅读:273
java基础知识
两个整数交换位置的三种方法:package com.dengchaoqun.ht;import java.util.Scanner;public class Test {/** * * java中又两个整数,让其数据交换的集中方法 */ public static void main(String....
分类:编程语言   时间:2015-12-02 14:34:42    收藏:0  评论:0  赞:0  阅读:212
javascript 内置日期转换方法
var d = new Date();console.log(d); // 输出:Mon Nov 04 2013 21:50:33 GMT+0800 (中国标准时间)console.log(d.toDateString()); // 日期字符串,输出:Mon Nov 04 2013console.l...
分类:编程语言   时间:2015-12-02 14:29:02    收藏:0  评论:0  赞:0  阅读:195
MyEclipse (2015) 中创建简单的Maven项目的步骤(用于生成可执行jar文件)
利用MyEclipse的引导,可以很方便的创建简单的、用于生成可执行jar文件的Maven项目:(原创文章,转载请注明转自Clement-Xu的博客:http://blog.csdn.net/clementad/article/details/46954277)1、New -> Project......
分类:编程语言   时间:2015-12-02 14:27:02    收藏:0  评论:0  赞:0  阅读:357
spring Bean的三种注入方式
1、构造函数注入:构造函数的注入方式分为很多种(1)普通构造函数,空参数的构造函数 (2)根据构造函数的参数顺序和个数package com.my.bean;public class Foo { public Foo(Bar bar, Baz baz) { // ... }} ...
分类:编程语言   时间:2015-12-02 14:25:22    收藏:0  评论:0  赞:0  阅读:550
java学习笔记-设计模式2(单例模式)
Singleton模式意图: 保证一个类仅有一个实例,并提供一个访问它的全局访问点。适用性: 当类只能有一个实例而且客户可以从一个众所周知的访问点访问它时。 当这个唯一实例应该是通过子类化可扩展的,并且客户应该无需更改代码就能使用一个扩展的实例时。优点: 对唯一实例的受控访问 因为Sing...
分类:编程语言   时间:2015-12-02 14:23:52    收藏:0  评论:0  赞:0  阅读:226
Python 效率
while i < len(myString): print 'character %d is:'%myString[i]length = len(myString)while i < length: print 'character %d is:'%myString[i]for oth...
分类:编程语言   时间:2015-12-02 14:21:42    收藏:0  评论:0  赞:0  阅读:358
Java中基本数据的包装类
java中基本数据类型的包装类有:Character、Boolean、Byte、Short、Integer、Long、Float和Double。 基本数据类型:char、 boolean、 byte、short、 int 、 long、 float、 double 这些包...
分类:编程语言   时间:2015-12-02 14:20:52    收藏:0  评论:0  赞:0  阅读:328
c++中类模版中的static数据成员的定义
这个有点绕。如下:1 template 2 class A{3 .........4 static std::allocate alloc_;5 };6 7 template //声明T为模版参数8 std::allocate A::alloc_;...
分类:编程语言   时间:2015-12-02 14:17:02    收藏:0  评论:0  赞:0  阅读:250
XStream xml转java对象
1:引入jar qn xstream xstream 1.1.3 xpp3 xpp3_min 1.1.3.4.O 2:XM...
分类:编程语言   时间:2015-12-02 14:16:52    收藏:0  评论:0  赞:0  阅读:689
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!