上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 22 下一页
摘要: if we received data like this:,"Date":"\/Date(1410969600000)\/",we can parse it like this:var t = eval('new ' + time.toString().replace(/\//g, ''));va... 阅读全文
posted @ 2014-09-10 09:35 二师弟tl 阅读(145) 评论(0) 推荐(0)
摘要: 每 自动更新 if youput these codes in the iframe,then iframe can refresh a... 阅读全文
posted @ 2014-09-02 13:28 二师弟tl 阅读(413) 评论(0) 推荐(0)
摘要: some people said the change event of checkbox can not trigger in the ie7 or ie8,that's not true.this event can trigger in the ie7 or ie8 ,but you can ... 阅读全文
posted @ 2014-09-02 11:03 二师弟tl 阅读(259) 评论(0) 推荐(0)
摘要: approach style="-moz-user-select:none;" onselectstart="javascript:return false;"onselectstart event is for ie 阅读全文
posted @ 2014-09-02 10:56 二师弟tl 阅读(148) 评论(0) 推荐(0)
摘要: four approachs can cross domain in javascript1.jsonp2.document.domain(only in frame and they have one same parent domain)3.window.name4.window.postMes... 阅读全文
posted @ 2014-09-02 10:11 二师弟tl 阅读(126) 评论(0) 推荐(0)
摘要: some sections in xml are always repeated,I received these file by wcf.I thought it's caused by buffersize of wcf or flush methodof stream.(I don't wha... 阅读全文
posted @ 2014-09-01 14:05 二师弟tl 阅读(152) 评论(0) 推荐(0)
摘要: $.fn.extend({ //此方法解决了ie中jquery不识别非xml的类型的xml字符串的问题 tony tan findX: function (name) { ... 阅读全文
posted @ 2014-08-29 13:55 二师弟tl 阅读(179) 评论(0) 推荐(0)
摘要: 常见的共有5个page函数,刚开始有点迷糊的是到底谁先谁后执行。实验告诉我们结果: var temp = ''; $('body').live('pagechange', function () { temp += 'pagechange,\n'; console.log (tem... 阅读全文
posted @ 2014-08-15 16:00 二师弟tl 阅读(3529) 评论(0) 推荐(0)
摘要: 当禁用了jqueryMobile的ajax后,初始化函数如pageinit和pageshow等函数,都会执行两次。document.ready函数也会执行两次。当然我们可以用一个变量记录是否已经执行,如果已经执行就不再执行第二次,但终究这不是最终办法。 var loaded = false;/... 阅读全文
posted @ 2014-08-15 15:28 二师弟tl 阅读(4037) 评论(0) 推荐(0)
摘要: 主要区别是:dialog默认含回退按钮。并且dialog在1.4版中已经过时,1.5中将会移除。下面是原文1:Using a Dialog Window as a PopupA jQuery Mobile dialog window can also be used as popup window.... 阅读全文
posted @ 2014-08-15 15:06 二师弟tl 阅读(760) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 22 下一页