码迷,mamicode.com
首页 >  
搜索关键字:function    ( 54714个结果
理解jquery的$.extend()、$.fn和$.fn.extend()
jQuery为开发插件提拱了两个方法,分别是:jQuery.fn.extend();jQuery.extend();jQuery.fnjQuery.fn = jQuery.prototype = { init: function( selector, context ) {//….//……};原.....
分类:Web程序   时间:2015-10-14 11:48:31    阅读次数:196
stackedMap by angular
angular.module(‘demo.stackedMap‘,[]) //?提供一个服务 .factory(‘$$stackedMap‘,function(){ ????return?{ ????????createNew:function(){ ????????????var?stack?=?[]; ????...
分类:其他好文   时间:2015-10-14 10:40:28    阅读次数:185
生成不重复的随机数
0x00、从一个数组(arr)随机生成有(num)个不相同的值的数组function createRandom( num, arr ) { var arrCache = [], objCache = {}; while( arrCache.length < num ) { ...
分类:其他好文   时间:2015-10-14 10:27:30    阅读次数:121
sql标量值函数,将汉字转化为拼音,无音标
USE [db_Test]GOSET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOcreate function [dbo].[fn_GetPinyin](@words nvarchar(2000)) returns varchar(8000) as begin...
分类:数据库   时间:2015-10-14 10:16:52    阅读次数:245
js获取上一个月、下一个月格式为yyyy-mm-dd的日期
/** * 获取上一个月 * * @date 格式为yyyy-mm-dd的日期,如:2014-01-25 */function getPreMonth(date) { var arr = date.split('-'); var year = arr[0]; //获取当前日期的年份 ...
分类:Web程序   时间:2015-10-13 22:37:56    阅读次数:355
C++高质量编程笔记
/* * 函数介绍: * 输入参数: * 输出参数: * 返回值 : */ void Function(float x, float y, float z) { … } if (…) { … while (…) { … } // end of while … } // end of if 版权和版本...
分类:编程语言   时间:2015-10-13 21:18:25    阅读次数:326
httpcomponents-client-4.4.x
Chapter1.FundamentalsPrevNextChapter1.Fundamentals1.1.Request executionThe most essential function of HttpClient is to execute HTTP methods. Execution...
分类:Web程序   时间:2015-10-13 21:10:49    阅读次数:232
httpcomponents-client-ga(4.5)
Chapter1.FundamentalsPrevNextChapter1.Fundamentals1.1.Request executionThe most essential function of HttpClient is to execute HTTP methods. Execution...
分类:Web程序   时间:2015-10-13 21:03:22    阅读次数:204
Mongodb 字段类型转换
db.diningmembers.find({modifedDate:{$type:9}}).forEach(function(x){x.tel = String(x.tel);db.diningmembers.save(x)});http://www.linxh.blog.chinaunix.ne...
分类:数据库   时间:2015-10-13 20:53:38    阅读次数:226
jquery.validate验证表单,自己的js提交数据,返回json
$.metadata.setType("attr","vld");$.validator.addMethod("username",function(value){ varp=/^[0-9a-zA-Z\u4e00-\u9fa5\.\-@_]+$/; returnp.exec(value)?true:false;},"Pleaseenteronlyletters,digits,chineseand‘_‘,‘-‘,‘@‘");$.metadata.setType("attr","vld");$.validator..
分类:Web程序   时间:2015-10-13 19:29:18    阅读次数:294
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!