![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JQuery
shengyao15
这个作者很懒,什么都没留下…
展开
-
JQuery 动态添加页面
----detail.jsp 页面上点击seqNo,出现该记录的详细列表【CIM】----用jquery跳转到ErrorRecordsAction 再到errorrecords.jsp(组装详细列表) 再将这个页面加载进来[code="java"]function getError(recordId){// save(); save_correc...原创 2011-04-27 15:46:07 · 359 阅读 · 0 评论 -
JQuery Training
[b]Use the newest version jQueryUse the right selectorUnderstand the parent and children[/b][code="java"]$parent.find(‘.child’)效率最高$('#parent .child')$('#parent .child') 效率差[/code][b...原创 2012-10-18 10:28:02 · 68 阅读 · 0 评论 -
跨域访问
跨域访问 能够访问,但是得不到返回值[b]JQuery跨域访问 jsonp[/b]JSONP is script tag injection, passing the response from the server in to a user specified functionfunction getServiceSet() { $.ajax({ url...原创 2012-12-06 14:42:56 · 67 阅读 · 0 评论 -
jquery 动态ID
下拉框选择View Attachment时需要把该行的数据复制到新的div中,可以在每个tr标签上加个动态的id, 点击View Attachment时将这个id传到JS, JS中根据ID选择器得到页面元素,循环并填充到新的div中[img]http://dl2.iteye.com/upload/attachment/0084/8952/c32d4c1c-e2df-335b-b0eb-b0...原创 2013-05-23 13:30:51 · 152 阅读 · 0 评论 -
jquery noConflict
解决其他框架使用$符号冲突的问题[code="java"]jQuery.noConflict();jQuery("div p").hide(); // 使用 jQuery$("content").style.display = "none"; // 使用其他库的 $()[/code]原创 2013-05-23 13:36:19 · 66 阅读 · 0 评论 -
JQuery JSON ajax
test1 $.post方法提交 UserServlettest2 $.ajax UserServlettest3 json方式 UserServlet2test4 $.getJSON方法 后台用JSONObject封装了StuBean UserServlet3test5 $.ajax UserServlet3test6 后台用JSONArray封装了...原创 2012-09-23 18:07:15 · 48 阅读 · 0 评论 -
JQuery
一, 选择器[code="java"]基本标签 $("p")ID $("#test")类 $(".test")层次后代 $("div span")子元素 $("#register-panel > ul")过滤第一个 $("div:first")偶数 $("div:even")奇原创 2012-10-10 15:15:12 · 62 阅读 · 0 评论