首页 > 编程语言
编写javascript的方法实现的一些功能。
编写一个javascript函数方法parseQueryString,把url参数解析为一个对象var url="http://www.taobao.com/index.php?key0=0&key1=1&key2=2";function parseQueryString(){ var st...
分类:编程语言   时间:2015-11-07 18:52:10    收藏:0  评论:0  赞:0  阅读:237
python之函数用法execfile()
# -*- coding: utf-8 -*-#python 27#xiaodeng#python之函数用法execfile()#execfile()#说明:用来执行一个文件,相对于双击的效果'''execfile(...) execfile(filename[, globals[, loca...
分类:编程语言   时间:2015-11-07 18:52:00    收藏:0  评论:0  赞:0  阅读:273
Numpy、SciPy、MatPlotLib在Python2.7.9下的安装与配置
Numpy、SciPy、MatPlotLib在Python2.7.9下的安装与配置 win7 32位
分类:编程语言   时间:2015-11-07 18:51:50    收藏:0  评论:0  赞:0  阅读:307
python之函数用法setattr(),了解即可
# -*- coding: utf-8 -*-#python 27#xiaodeng#python之函数用法setattr(),了解即可#http://www.cnblogs.com/hongfei/p/3858256.html#setattr()#说明:给object对象添加新的name(属性)和...
分类:编程语言   时间:2015-11-07 18:51:30    收藏:0  评论:0  赞:0  阅读:446
python之函数用法id(),了解即可
# -*- coding: utf-8 -*-#python 27#xiaodeng#python之函数用法id(),了解即可#http://www.cnblogs.com/hongfei/p/3858256.html#id()#说明:查找对象的内存地址'''id(...) id(object...
分类:编程语言   时间:2015-11-07 18:51:00    收藏:0  评论:0  赞:0  阅读:134
C++ 中int,char,string,CString类型转换
1.c++中string到int的转换1) 在C标准库里面,使用atoi:#include #include std::string text = "152";int number = std::atoi( text.c_str() );if (errno == ERANGE) //可能是std::...
分类:编程语言   时间:2015-11-07 18:49:30    收藏:0  评论:0  赞:0  阅读:249
java练习——接口与继承
父类与子类的构造方法: 如果父类中有一个默认无参的构造方法,那么子类的构造方法中会自动进行调用。如果父类有自己的构造方法,且这时父类没有默认无参的构造方法,那么在子类的构造方法中,必须要调用父类的某个构造方法,而且必须是在构造方法的第一个语句中进行调用,格式为super();如果放在了别的地方不.....
分类:编程语言   时间:2015-11-07 18:47:40    收藏:0  评论:0  赞:0  阅读:108
java课后作业6
一、运行TestInherits.java结论:通过super调用基类构造方法,必须是子类构造方法中的第一个语句。二、为什么子类的构造方法在运行之前,必须调用父类的构造方法?能不能反过来?为什么不能反过来?子类是从父类继承来的,所以想用子类创建对象的时候,必须要先建立父类的对象,子类有父类的属性和方...
分类:编程语言   时间:2015-11-07 18:46:50    收藏:0  评论:0  赞:0  阅读:313
c++重载运算符
//#include using namespace std;class complex{public: complex() { real=imag=0; } complex(double r, double i) { real = r, imag = i; }...
分类:编程语言   时间:2015-11-07 18:46:30    收藏:0  评论:0  赞:0  阅读:239
C++之 const
In the C, C++, and D programming languages, const is a type qualifier, a keyword applied to a data type that indicates that the data is constant (does not vary). While this can be used to declare...
分类:编程语言   时间:2015-11-07 17:44:01    收藏:0  评论:0  赞:0  阅读:431
python之函数用法any()
# -*- coding: utf-8 -*-#python 27#xiaodeng#python之函数用法any()#any()#说明:如果iterable的任何元素不为0、''、False,all(iterable)返回True。如果iterable为空,返回False'''any(...) ....
分类:编程语言   时间:2015-11-07 17:40:30    收藏:0  评论:0  赞:0  阅读:134
python之函数用法isinstance()
# -*- coding: utf-8 -*-#python 27#xiaodeng#python之函数用法isinstance()#isinstance()#说明:返回一个布尔值,判断数据类型'''isinstance(...) isinstance(object, class-or-typ...
分类:编程语言   时间:2015-11-07 17:40:20    收藏:0  评论:0  赞:0  阅读:433
javascript什么是函数
函数是完成某个特定功能的一组词语。如没有函数,完成任务可能需要五行、十行、甚至更多的代码。这是未满就可以把完成特定功能的代码块放到一个函数里,直接调用这个函数,就省重复输入大量代码的麻烦。如何定义一个函数呢?基本语法如下:function 函数名(){ 函数代码;}说明:1.function定义.....
分类:编程语言   时间:2015-11-07 17:40:10    收藏:0  评论:0  赞:0  阅读:231
JavaScript代码优化技巧总结
1.避免使用全局变量:var a = 1;var b = 2;var c = 3;尽量使用局部变量:function () { var a = 1; var b = 2; var c = 3; }或者这样:var json = { "a" : 1, "b" :...
分类:编程语言   时间:2015-11-07 17:39:50    收藏:0  评论:0  赞:0  阅读:244
JavaScript 中的“Map”
最近项目中遇到要拼接一个如下结构的对象var testdesign = { SQL: "selet id, name from sales", Fields: { total: 2, Field1: { name: "id", ...
分类:编程语言   时间:2015-11-07 17:37:50    收藏:0  评论:0  赞:0  阅读:240
python 时间操作
import datetimeimport time#获取当前时间datetime.datetime.now()#获取当前日期datetime.date.today()#字符串转换为时间格式>>> t = time.strptime("2009-08-08", "%Y-%m-%d")>>> y,m,...
分类:编程语言   时间:2015-11-07 17:37:40    收藏:0  评论:0  赞:0  阅读:393
Visual C++ 64bit应用程序项目设置
Visual Studio 2005 This topic describes how to set up C++ applications to target 64-bit platforms using project configurations available in the Visual...
分类:编程语言   时间:2015-11-07 17:36:40    收藏:0  评论:0  赞:0  阅读:422
快速排序
快速排序是基于冒泡排序的算法改进,算法的基本思想是分治的思想.关于分治思想有空写.基本的排序原理: 每次排序只发生在指定的边界内.然后把指定边界内的数组看作一个完整的子数组,将字数组的首位元素作为比较的基准(标准的算法是随机选择,而且有选择的算法,有空写)进行一次排序,此次单一排序的目的是将字数组中...
分类:编程语言   时间:2015-11-07 17:36:30    收藏:0  评论:0  赞:0  阅读:319
spring 上传图片
1 @RequestMapping(value = "/upload",method = RequestMethod.POST) 2 public String upload(@RequestParam(value = "file", required = false) Multipart...
分类:编程语言   时间:2015-11-07 17:35:40    收藏:0  评论:0  赞:0  阅读:281
线程--Thread
1、继承 父类Thread,实现 函数run()1 class XXX extends Thread 2 {3 @Override4 public void run()5 {6 super.run();7 }8 } PS:Thread.start()...
分类:编程语言   时间:2015-11-07 17:34:00    收藏:0  评论:0  赞:0  阅读:261
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!