一、构造函数基本用法:function 类名(参数列表){ 属性=参数值} 1
function Person(name,age){ 2 this.name = name; 3 this.age = age; 4 } 5 6
//创建Person对象的时候,可以直接给名字和年龄 7...
分类:
编程语言 时间:
2014-05-16 19:48:25
阅读次数:
428
rewriter配置nginx.conf配置 server { listen 80;
server_name 127.0.0.1; index index.php; root /usr/share/nginx/html; #rewrite
^/projects/BookLib...
分类:
其他好文 时间:
2014-05-16 19:46:26
阅读次数:
316
@echo offtitle 在windows中导出/导入无线网络信息:Beginecho
========================echo 请选择操作:echo 1 查看可用的无线网络echo 2 导出无线网络配置echo 3
导入无线网络配置echo 0 退出echo =========...
运行单独的节点意味着有将会面对单点故障——没有冗余的数据备份。幸运的是我们可以启动另外的node来保护我们的数据。一个新的node,只要他的cluster
name和已经存在的cluster节点的名称相同,就会自动加入这个cluster,并且能和其他的node进行通信。增加第二个node之后,clu...
分类:
其他好文 时间:
2014-05-16 19:11:21
阅读次数:
341
-- 查找重复记录select names,num from test where rowid !=
(select max(rowid) from test b where b.names = test.names and b.num =
test.num)或者使用select names,n.....
分类:
数据库 时间:
2014-05-16 18:51:53
阅读次数:
278
1 Action添加特性 [PermissionFilterForJson(Name =
"AdvertiserId", ActionName = EaActionNames.广告主相关_广告主上线,Type = (int)
EaEnum.LoginType.Advertiser)] ...
分类:
其他好文 时间:
2014-05-16 18:33:23
阅读次数:
403
Import CSV data to Sqlite.
导入CSV数据到SQLite.在做数据导入的时候,只需要理清楚两点就可以了。1, 提取 Title 作为field name.2,
数据写入数据池。这里SQLite很好的为我们解决了这类问题。fieldsnames 属性很高的解决了 提取titl...
分类:
数据库 时间:
2014-05-14 09:41:36
阅读次数:
380
所需jar包:bean: 1 package com.myspring.bean; 2 3
public class User { 4 private String id; 5 private String name; 6 7 public
String getId() ...
分类:
编程语言 时间:
2014-05-14 08:55:20
阅读次数:
364
执行命令:madconfig.bat create_instance1.实例的名称Enter
the Initiate Master Data Engine instance name:MPI2.实例的文件路径Enter the Initiate
Master Data Engine instanc...
分类:
其他好文 时间:
2014-05-14 08:05:06
阅读次数:
326
@Resource的作用相当于@Autowired,只不过@Autowired按byType自动注入,而@Resource默认按byName自动注入罢了。@Resource有两个属性是比较重要的,分是name和type,Spring将@Resource注解的name属性解析为bean的名字,而typ...
分类:
其他好文 时间:
2014-05-14 07:46:38
阅读次数:
270