随笔分类 -  JavaScript

摘要:利用jquery发送ajax请求的几个模板代码。 $.ajax({ async : false, type: 'POST', dataType : "json", url: "v_tree.do", data:{}, error: function (XMLHttpRequest, textStatus, errorThrown... 阅读全文
posted @ 2014-11-18 14:29 于辰 阅读(895) 评论(0) 推荐(0)
摘要:function getFormQueryString(frmID) { var frmID=document.getElementById(frmID); var i,queryString = "", and = ""; var item; // for each form's obj... 阅读全文
posted @ 2014-05-29 14:43 于辰 阅读(1306) 评论(0) 推荐(0)
摘要:在form 中增加onsubmit="return false;"属性。 阅读全文
posted @ 2014-01-16 17:52 于辰 阅读(1050) 评论(0) 推荐(0)
摘要:document.location.reload();会重新加载页面,onload事件会被触发。location.href='xxx'刷新页面,onload事件不会触发。 阅读全文
posted @ 2013-12-02 23:36 于辰 阅读(1369) 评论(0) 推荐(0)