代码取自于underscore.js 1.8.3的isEqual函数。做了一些小小的修改,主要是Function的比较修改。自己也加了一些代码解读。 js中两个对象的比较
分类:
Web程序 时间:
2015-06-18 18:57:42
阅读次数:
108
$(function() { // 公告滚动 $(".notice-content").textScroll();});/** * 从右往左滚动文字 * @returns {undefined} */$.fn.textScroll = function() { // 滚动步长(步长...
分类:
Web程序 时间:
2015-06-18 18:48:51
阅读次数:
149
一般的页面我们实现分页效果都是用跳转的形式,但是有些需求需要我们在不跳转页面的同时完成分页效果,简单的一个实现例子:window.onload = function(){
page({
id:'pageBox',
nowNum:7,
allNum:10,
callbac...
分类:
编程语言 时间:
2015-06-18 17:19:02
阅读次数:
150
进入wp-content\themes\storefront\inc\structure\footer.php, 注释掉代码:if ( ! function_exists( 'storefront_credit' ) ) { /** * Display the theme credit...
分类:
其他好文 时间:
2015-06-18 17:16:00
阅读次数:
201
//只可以输入数字function getEvent() { if (document.all) { return window.event; //for ie } func = getEvent.caller; while (func != null) { var arg0 =...
分类:
Web程序 时间:
2015-06-18 16:59:35
阅读次数:
124
Imports System.NetImports System.TextImports TwilioPublic Class clsTwilioSMS Public Shared Function Send(ByVal pToNumber As String, ByVal pSMSMessa...
分类:
Web程序 时间:
2015-06-18 16:47:19
阅读次数:
116
1 _makeFixconfig(); 15 } 16 17 //读取固定参数 18 private function _makeFixconfig() { 19 $this->_fix_config ...
分类:
移动开发 时间:
2015-06-18 16:46:40
阅读次数:
1079
JavaScript采用正则表达式实现startWith、endWith效果函数代码如下:String.prototype.startWith=function(str){ var reg=new RegExp("^"+str); return reg.test(this);}String.prot...
分类:
编程语言 时间:
2015-06-18 16:41:35
阅读次数:
126
抛物线加入购物车的特效动画(支持ie7以上,移动端表现良好) 1.引用一个极小的jquery插件库 2.启动 设置 起点 终点 和完成后回调函数 1.插件地址 git-hub上的官方主页 https://github.com/amibug/fly 引入具体文件:(function () { va.....
分类:
Web程序 时间:
2015-06-18 16:40:35
阅读次数:
193
public function getTree(){
$data = $this->select();
$list = $this->_getTreeData($data);
return $list;
}
private function _getTreeData($data=array(), $parent_id=0){
...
分类:
其他好文 时间:
2015-06-18 13:35:17
阅读次数:
124