jQuery为开发插件提拱了两个方法,分别是:jQuery.fn.extend();jQuery.extend();jQuery.fnjQuery.fn = jQuery.prototype = { init: function( selector, context ) {//….//……};原.....
分类:
Web程序 时间:
2015-10-14 11:48:31
阅读次数:
196
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
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
/** * 获取上一个月 * * @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
/* * 函数介绍: * 输入参数: * 输出参数: * 返回值 : */ void Function(float x, float y, float z) { … } if (…) { … while (…) { … } // end of while … } // end of if 版权和版本...
分类:
编程语言 时间:
2015-10-13 21:18:25
阅读次数:
326
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
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
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
$.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