随笔分类 -  前端

摘要:listview: 添加 jq(".detail").listview("refresh");div或其他: 添加.trigger( "create" ); 阅读全文
posted @ 2015-01-28 14:42 我去不科学的-ef 阅读(109) 评论(0) 推荐(0)
摘要:$("#test").val()$("input[name='test']").val()$("input[type='text']").val()$("input[type='text']").attr("value") 阅读全文
posted @ 2015-01-27 16:15 我去不科学的-ef 阅读(348) 评论(0) 推荐(0)
摘要:第一次访问页面不加载onload函数,刷新就可以。听说是跳转到这个页面的button要禁用掉ajax,加上data-ajax="null"属性,试试看 阅读全文
posted @ 2015-01-22 13:23 我去不科学的-ef 阅读(118) 评论(0) 推荐(0)
摘要:$.post(_url,userId,function(json){ for(var i=0;i"+json[i].username+""); } });奇怪,为什么之前也是这么类似的遍历都不行的。。。 阅读全文
posted @ 2015-01-22 09:25 我去不科学的-ef 阅读(121) 评论(0) 推荐(0)
摘要:js这样写:document.getElementById("pp").getElementsByTagName("a").length;jquery这样写:$("#pp a").index()+1; 阅读全文
posted @ 2015-01-14 17:51 我去不科学的-ef 阅读(169) 评论(0) 推荐(0)