通过简单的command(命令)模式,理解apply, call, 作用域 (function(){ var carManager = { requestInfo:function(model,id){ return 'the inf...
分类:
其他好文 时间:
2014-07-18 16:09:42
阅读次数:
183
反复用到却一直记不住...var a = $(window).height() //设备的高度var b = $(window).scrollTop() //滚动的高度var c = $(document).height() //整个文...
分类:
Web程序 时间:
2014-07-18 00:15:51
阅读次数:
175
//JS的扩展方法: 1 定义类静态方法扩展 2 定义类对象方法扩展 var aClass = function(){} //1 定义这个类的静态方法 aClass.sayHello = function(){ alert('say hello');...
分类:
Web程序 时间:
2014-07-17 22:38:35
阅读次数:
307
1 var user = form.name.value; 2 var password = form.password.value; 3 var url = "chkname.php?user="+user+"&password="+password;//以前只知道aja...
分类:
其他好文 时间:
2014-07-17 22:15:23
阅读次数:
251
1 procedure SetRowNumber(var ASender: TcxGridTableView; AViewInfo: TcxCustomGridIndicatorItemViewInfo; 2 var ACanvas: TcxCanvas; var ADone: boolea...
分类:
其他好文 时间:
2014-07-17 21:31:02
阅读次数:
297
安装nconf安装前创建nconf数据库并建立用户及分配权限mysql-uroot-pcreatedatabasenconf;grantallprivilegesonnconf.*tonconf@localhostidentifiedby‘nconf‘;flushprivileges;安装nconf[root@SZNAGIOS01mnt]#tarzxvfnconf-1.3.0-0..tgz[root@SZNAGIOS01mnt]#mvnconf/var/www/ht..
分类:
其他好文 时间:
2014-07-17 20:30:00
阅读次数:
331
js防阻塞加载
function scriptDomElement (u) {
var s = document.createElement('script');
h = document.getElementsByTagName('body')[0];
s.src = u;
s.async = true;
if(h)h.appendChild(s,h.firstChild);
}
scriptDomElement('ht...
分类:
Web程序 时间:
2014-07-17 20:18:09
阅读次数:
328
rpm命令可以实现安装、查询、卸载、校验、升级、数据库重建、验证数据包等功能。它的数据库在/var/lib/rpm下。rpm包的组成部分为主包:bind-9.7.1-1.el5.i586.rpm子包:bind-libs-9.7.1-el5.i586.rpmrpm包的格式有两种:name-version-release.arch.rpm和bind-major.minor.relea..
分类:
其他好文 时间:
2014-07-17 20:05:39
阅读次数:
246
js 对象 数组长什么样 见本人http://blog.csdn.net/baicp3/article/details/12752255这篇文章
我们直接上例子吧
data3为一个js对象,一会在java代码中接收的时候要一个entity 其里面的字段要跟js对象里面的字段对应上。
var data3 = {
"sign" : "0",
"remarks" : "ddddd",...
分类:
编程语言 时间:
2014-07-17 19:04:03
阅读次数:
428
百度在线手写板代码-php自学网
#sx{color:#00C;text-decoration:underline;cursor:pointer;}
手写
var w = window,d = document,n = navigator,k = d.f.wd
if (w.attachEvent) {
w.attachEve...
分类:
其他好文 时间:
2014-07-17 19:02:52
阅读次数:
635