jquery笔记1.核心函数2.选择器3.筛选4.文档处理5.属性6.css7.事件8.效果9.ajax10.工具为解决多框架冲突1.$()2.jQuery()js加载时机当页面加载完毕时 所有元素加载完毕(包括图片) windows.onload当DOM元素加载完毕时--到$(function(....
分类:
Web程序 时间:
2015-10-11 12:49:01
阅读次数:
162
先上一小段代码,看看能不能看懂,三天后揭晓单例模式。。$.tabControl = $.tabControl || {};$.extend($.tabControl,{ prop1:”abc”,//注意此处为单例类实例 init:function($self,options){ ...
分类:
编程语言 时间:
2015-10-11 12:48:18
阅读次数:
161
easyui-datagrid 绑定的行 field 原样输出html标签。处理效果如图:Html页面代码如下:... 编号 名称...处理的js代码如下:function formatEncodeHtml(value, row, index) { return e...
分类:
Web程序 时间:
2015-10-11 11:26:37
阅读次数:
237
Given an arraynums, write a function to move all0's to the end of it while maintaining the relative order of the non-zero elements.For example, givenn...
分类:
其他好文 时间:
2015-10-11 10:11:04
阅读次数:
166
文章1一步:下载、安装文件 打开nodejs官方网站http://www.nodejs.org/download/ 。选择须要的版本号。直接打开。默认安装就可以第二步:编写測试代码:var http = require('http');http.createServer(function(req, ...
分类:
Web程序 时间:
2015-10-11 09:00:54
阅读次数:
202
/**
*??@desc?根据两点间的经纬度计算距离
*??@param?float?$lat?纬度值
*??@param?float?$lng?经度值
*/
?function?getDistance($lat1,?$lng1,?$lat2,?$lng2)
?{
?????$earthRadius?=...
分类:
Web程序 时间:
2015-10-11 06:53:47
阅读次数:
185
1 router.get('/commodities/sortable', utils.logged, function (req, res) { 2 Commodity.find({force_top:true}).sort("-force_top position -at").exec...
分类:
其他好文 时间:
2015-10-11 06:45:38
阅读次数:
244
1 var a = XX;2 var b = a;如果a是基本类型,则为值拷贝;如果a是对象,则是引用拷贝。1.深拷贝 1 function deepCopy(obj) { 2 if (typeof obj != 'object') 3 ret...
分类:
Web程序 时间:
2015-10-11 00:33:04
阅读次数:
127
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:
其他好文 时间:
2015-10-11 00:31:00
阅读次数:
213
教程:https://cnodejs.org/topic/516526766d38277306c7d277看着挺爽的。//同步var assert = require('assert');describe('Array', function(){ describe('#indexOf', funct...
分类:
其他好文 时间:
2015-10-11 00:28:42
阅读次数:
220