码迷,mamicode.com
首页 >  
搜索关键字:function    ( 54714个结果
创建sqlserver函数
CREATE FUNCTION getsort (@first varchar(100),@second varchar(100))RETURNS intASBEGINdeclare @rv int if(@first=@second) set @rv=1 elseset @rv=0 -- R...
分类:数据库   时间:2015-10-14 17:33:53    阅读次数:143
前端小结(4)---- 页面加载loding....
/*正在加载*/function showLoading(elem) { var html = '' if (elem) { elem.after(html); } $("#over").css("display", "block"); $("#layou...
分类:其他好文   时间:2015-10-14 17:30:14    阅读次数:152
CI 框架中 AR 操作
Model 层中的部分代码 1 /** 2 * CI 中的 AR 操作 3 * @author zhaoyingnan 4 **/ 5 public function mAR() 6 { 7 /***************...
分类:其他好文   时间:2015-10-14 17:22:02    阅读次数:304
jQuery判断是否为空
(function($){ ????$.isBlank = function(obj){ ????????return(!obj || $.trim(obj) === ""); ????}; })(jQuery); $.isBlank(" ") //true $.isBlank("") //true $.isBlank("\n") //true $.i...
分类:Web程序   时间:2015-10-14 12:52:49    阅读次数:782
multiMap by angular
angular.module(‘demo‘,[]) .factory(‘$$multiMap‘,function(){ ????return?{ ????????createNew:function(){ ????????????var?map?=?{}; ???????????? ???????...
分类:其他好文   时间:2015-10-14 12:51:56    阅读次数:121
node.js 多异步之间的协作方案
《深入浅出node.js》 P77 学习///用于处理多个事件对应一个侦听器的情况var count = 0;var results = {};var done = function (key, value){ results[key] = value; count++; if (...
分类:Web程序   时间:2015-10-14 12:33:15    阅读次数:188
冒泡,选择排序
#include#include#define MAX_SIZE 101//swap function bug//void swap(int x,int y) swap change the location of the two numbervoid swap(int &x,int &y)//w....
分类:编程语言   时间:2015-10-14 12:25:53    阅读次数:125
服务端 返回给客户端 的 一些数据 处理
1. 删除html 标签 和 空格//移出字符串中的所有html标签function removeHtmlTag($info){ $info = trim(preg_replace("//m", '', $info)); //$info = str_replace('','',$info...
分类:其他好文   时间:2015-10-14 12:23:03    阅读次数:168
图片懒加载
(function(){ //common function tagName(tagName){ return document.getElementsByTagName(tagName); ...
分类:其他好文   时间:2015-10-14 12:16:26    阅读次数:183
document.documentElement和document.body的区别
网页中获取滚动条卷去部分的高度,可以通过 document.body.scrollTop 来获取,比如使div跟着滚动条滚动:window.onscroll = function (){ var div = document.getElementById("div"); div.styl...
分类:其他好文   时间:2015-10-14 12:03:02    阅读次数:122
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!