码迷,mamicode.com
首页 >  
搜索关键字:function    ( 54714个结果
js 日期操作
//获取当前时间 2015年10月14日 10:10:37nowTime:function(){ var date = new Date(); var year = date.getFullYear(); var month = date.getMon...
分类:Web程序   时间:2015-10-19 16:54:15    阅读次数:161
当函数传入参数是引用类型的几种情况和现象。
1 function hehe(o,oo){ 2 o = 'xoxo' 3 oo.ins.name = 'zhangmingzhi;' 4 } 5 var obj = { 6 i...
分类:其他好文   时间:2015-10-19 15:36:04    阅读次数:231
sql 分区函数
create partition function RangeTime (datetime) as range left for values ('2012-12-31','2013-12-31','2014-12-31') select $partition.RangeTime(1)SELECT....
分类:数据库   时间:2015-10-19 15:15:59    阅读次数:241
Move Zeroes
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-19 12:34:28    阅读次数:120
让zepto支持requirejs的方法
window.Zepto = Zepto'$' in window || (window.$ = Zepto)if ( typeof define === "function" && define.amd ) { define( "zepto", [], function () { return ....
分类:Web程序   时间:2015-10-19 12:25:25    阅读次数:554
angular : $eval & $timeout
$digest: function() { var watch, value, last, watchers, length, dirty, ttl = TTL, next, current, ta...
分类:其他好文   时间:2015-10-19 12:18:10    阅读次数:172
angular : $location & $state(UI router)的关系
次序:angular 的 location会先跑$rootScope.$on("$locationChangeStart", function (scope, newUrl, oldUrl) { log("$locationChangeStart from " + oldUrl) log...
分类:其他好文   时间:2015-10-19 12:13:47    阅读次数:229
PHPCMS变相关闭生成首页
找到:phpcms\modules\content\classes\html.class.php 文件 然后找到 public?function?index()?{ ... } 将以上function里面的index.html全部换成其他的文件名即可。...
分类:Web程序   时间:2015-10-19 11:04:00    阅读次数:150
jquery插件layer
//信息框-例1layer.alert('见到你真的很高兴', {icon: 6}); //信息框-例2layer.confirm('你确定你很帅么?', {icon: 3}, function(index){ layer.close(index); alert('自恋狂');});//...
分类:Web程序   时间:2015-10-19 10:50:03    阅读次数:206
jquery插件:点击拉出的右侧滑动菜单
就是一个停留在页面右侧的滑动菜单,点击可以拉出,带回调函数。宽高位置可以参数指定。插件代码如下:(jquery的路径请自己修改)(function($){$.fn.sideSwitch = function(opts){ var defaults = { contentW...
分类:Web程序   时间:2015-10-19 09:19:10    阅读次数:223
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!