who what触发 按钮 点击 (click)执行 div 动画 (animation) $(document).ready(function(){ $(“#butten”).click(function(){$(“.rabbit”).hide( ) } //function() 这是没有名字的函 ...
分类:
Web程序 时间:
2016-05-11 01:13:16
阅读次数:
149
LSP原则,又叫做里氏替换原则(Liskov Substitution Principle),一个比较准确的定义如下: Function's that ues point or references tobase classes must be able to use objects of deri ...
分类:
其他好文 时间:
2016-05-11 01:13:05
阅读次数:
180
大家先看一下,下面代码 (function (window,undefined) {window.alert('zhangling');var person = {};person.addName = function () {};person.addAge = function () {};})( ...
分类:
Web程序 时间:
2016-05-11 01:12:15
阅读次数:
174
作为一个初入互联网行业的小鑫鑫,在使用springMVC时发现一个好耍的东西,决定记下来,免得哪天忘了,哈哈第一种序列化表单,将表单数据序列化为json对象字符串 $("#submit").click(function(){
varform=$("form").serializeArray();
$.ajax({
url:"${pageContext.request.co..
分类:
编程语言 时间:
2016-05-10 23:48:02
阅读次数:
214
1、自定义属性,使用好索引值 例子: 下面有一段js代码: <script> window.onload = function(){ var oBtn = document.getElementByTagName("button"); for(var i=0;i<oBtn.length;i++){ ...
分类:
编程语言 时间:
2016-05-10 23:40:52
阅读次数:
209
Write a function that takes a string as input and returns the string reversed. Example:Given s = "hello", return "olleh". ...
分类:
其他好文 时间:
2016-05-10 23:40:43
阅读次数:
171
Write a function that takes a string as input and reverse only the vowels of a string. Example 1:Given s = "hello", return "holle". Example 2:Given s ...
分类:
其他好文 时间:
2016-05-10 23:34:15
阅读次数:
167
说到setTimeout与setInrerval大家可能都觉得很easy,我刚接触js的也是这样的想法,可后来在知乎看到了一道题,大概好像是这样的: 例一: setTimeout(function(){ console.log("小马“); setTimeout(function(){argumen ...
分类:
其他好文 时间:
2016-05-10 23:29:50
阅读次数:
229
function zlClick($id){ var eles = document.getElementById($id).children; var srcEle = event.srcElement; for(var i=0;i<eles.length;i++){ if(srcEle.chec ...
分类:
其他好文 时间:
2016-05-10 23:08:39
阅读次数:
200
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 true ...
分类:
其他好文 时间:
2016-05-10 20:52:44
阅读次数:
233