随笔分类 - JavaScript
摘要:http://www.w3cfuns.com/notes/17783/7f8702dde44ecf68dbd124d4999904d0
阅读全文
摘要:http://www.w3cfuns.com/notes/17783/6986f3f9408f366c4483c04dea546a07
阅读全文
摘要:http://www.w3cfuns.com/notes/17783/33b52deb2b67a9b49261dff05103814e
阅读全文
摘要:var s1 = "some text"; s1.color = "red"; alert(s1.color); //弹出 underfinedvar s1 = new Object("some text"); s1.color = "red"; ...
阅读全文
摘要:今天逛贴吧看到的,与自己预想的不同,于是在群里求解后方得知答案,遂记录之。代码来袭。function a(){ var i=1; i++; alert(i); //2 } var c = a(); c();function a(){ ...
阅读全文
摘要:回车切换焦点 jQuery版 相比存在一点缺陷 要求不严格的话可以用$(function () { $('input:text:first').focus(); var $inp = $('input:text'); $inp....
阅读全文
摘要:input type="submit"在360浏览器上不能提交 用了这个$(".input").keydown(function(e){ //class为input的最后一个 var e = e || event, //event是兼容IE浏...
阅读全文
摘要:今天遇到了这个问题,判断如果为空,则会去执行什么什么。var abc = data.mch_id;if ( typeof(abc) == 'underfined' ){alert('值为空');}type返回的字符串,有六种 : "number", "string", "boolean", "fu...
阅读全文

浙公网安备 33010602011771号