$.each:该方法用于遍历任何集合,包括数组和对象 $(selector).each:该方法用于遍历Jquery对象 语法:$.each(obj,callback,args) ①遍历数组 var arry = ["a","b","c","d",…]; $.each(arry,function(in ...
分类:
其他好文 时间:
2016-05-14 20:14:27
阅读次数:
293
345. Reverse Vowels of a String Write a function that takes a string as input and reverse only the vowels of a string. Example 1: Given s = "hello", r ...
分类:
编程语言 时间:
2016-05-14 18:50:20
阅读次数:
149
217. Contains Duplicate Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears a ...
分类:
编程语言 时间:
2016-05-14 18:50:20
阅读次数:
198
100. Same Tree Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structura ...
分类:
编程语言 时间:
2016-05-14 18:50:12
阅读次数:
157
1.作用域: 域:空间、范围、区域… 作用:读、写 script 全局变量,全局函数 自上而下 函数 由里到外 {} 2.js解析: ⑴ “找一些东西”:var、 function、 参数…… a = 未定义 所有的变量,在正式运行代码之前,都提前赋予了一个值:未定义。 fn1 = function ...
分类:
Web程序 时间:
2016-05-14 18:49:30
阅读次数:
133
一、首页调用 百度了很多,没有找到实际的解决方法,对于直接读取数据库,这种写法不会采取。 后来,仔细考虑,这部分解决的内容不会很多,所以直接使用了简介的内容 方法一(默认长度55) [field:info function='cn_substr(html2text(@me),350)'/]... 方 ...
分类:
其他好文 时间:
2016-05-14 18:47:23
阅读次数:
186
283. Move Zeroes Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements. ...
分类:
编程语言 时间:
2016-05-14 18:45:37
阅读次数:
155
344. Reverse String Write a function that takes a string as input and returns the string reversed. Example: Given s = "hello", return "olleh". 题目大意: 字 ...
分类:
编程语言 时间:
2016-05-14 18:44:19
阅读次数:
179
242. Valid Anagram Given two strings s and t, write a function to determine if t is an anagram of s. For example, s = "anagram", t = "nagaram", return ...
分类:
编程语言 时间:
2016-05-14 18:40:07
阅读次数:
175
var i = setInterval(function() { if(video.readyState > 0) { var seconds = video.duration % 60;//分 var minutes = parseInt(video.duration / 60, 10);//秒 ...
分类:
其他好文 时间:
2016-05-14 18:33:31
阅读次数:
146