1、isString 1 var isString1 = function (obj){ 2 return Object.prototype.toString.call(obj)==="[object String]"; 3 }; 4 5 6 var isString2 = function(obj
分类:
编程语言 时间:
2016-03-01 11:02:28
阅读次数:
164
//气球动画 function myfn(o,t){ var n=0; var status=0; setInterval(function(){ var top1=o.offset().top;//40 n++; if(status==0){ o.offset({top:top1+1}); }el
分类:
其他好文 时间:
2016-03-01 11:00:38
阅读次数:
135
1.当前地址:http:xxxx.com?type=1&area=2; 2.获取当前地址代码 var Url_url = { GetRequest : function(strName) { var strHref = window.location.href; var intPos = strHr
分类:
其他好文 时间:
2016-03-01 10:54:18
阅读次数:
132
Javascript的函数 --函数是由事件驱动的或者当它被调用时执行的可重复使用的代码块。 --函数就是包裹在花括号中的代码块,前面使用了关键词function: 调用带参数的函数 --在调用函数时,你可以向其传递值,这些值被称为参数。这些参数可以在函数中使用。你可以发送任意多的参数,由逗号(,)
分类:
编程语言 时间:
2016-03-01 10:52:41
阅读次数:
207
<script type="text/javascript"> $(document).ready(function(){ $("#is_big5").change(function(){ var is_big5 = $("#is_big5").val(); var url = "managemen
分类:
其他好文 时间:
2016-03-01 08:31:17
阅读次数:
125
Terms: canonical ensemble 正则系综;partition function 配分函数 前一天整理回顾了统计力学所需要的基本的数学物理背景知识,今天正式跨入统计力学的第一道门槛。在学习物理化学/化学热力学的时候,会听到"系综"和"配分函数"两个概念很多次,在没有深入学习统计力学...
分类:
其他好文 时间:
2016-03-01 06:20:34
阅读次数:
1508
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For example, given n = 3, a solution set is: "
分类:
其他好文 时间:
2016-03-01 00:43:39
阅读次数:
150
private function receiveImage($postSql) { $xml="<xml> <ToUserName><![CDATA[%s]]></ToUserName> <FromUserName><![CDATA[%s]]></FromUserName> <CreateTime>
分类:
其他好文 时间:
2016-02-29 23:21:54
阅读次数:
250
首先我们来看看哪些是对象? Null,Array,Function,Object,prototype,RegExp,Date,这些都是对象,其中Null比较特殊,至于哪里特殊,我们接下来会讲。 那么怎么创建一个对象?so~yi~z // 数组的创建方法 方法1:var arr = []; 方法2:v
分类:
其他好文 时间:
2016-02-29 23:18:10
阅读次数:
182
Functions Functions are self-contained chunks of code that perform a specific task. You give a function a name that identifies what it does, and this
分类:
其他好文 时间:
2016-02-29 23:12:59
阅读次数:
168