web页面
iteye_20654
这个作者很懒,什么都没留下…
展开
-
页面表单元素置灰不可用的设置
$("#contentForm").find("input").each(function(){ $(this).attr("disabled","disabled"); }); $("#contentForm").find("textarea").each(function(){ $(this).attr("disabled","2017-03-31 11:00:13 · 2815 阅读 · 0 评论 -
ajax 往回返值return value
function check(){ var flag = ""; $.ajax({ type : 'GET', async:false, dataType : 'json', cache : false, url : xxx.do, success : function...原创 2017-04-24 20:28:43 · 120 阅读 · 0 评论 -
js字符串判断是否为空
js页面中判断某个字符串是否为空 例如: var str = ""; if(str !== null || str!== "") 这样的判空操作,很不准确。 应改为: if(str.length == 0)这样得判断准确性要高 ...原创 2017-05-02 11:27:58 · 1817 阅读 · 0 评论