随笔分类 -  jquery

页面的方法传参,字符串拼接,插件的使用
摘要:自己拼接的字符串中调用了方法时,传字符串参数时,就要带 ''\ 和 '\' 不然参数接收不到 阅读全文
posted @ 2018-07-06 16:10 磨人小妖精 阅读(6291) 评论(0) 推荐(0)
摘要:1.引入css文件(可根据自己页面的布局进行调整) /* 图片框样式设置 */ .list-main{width:100%;height:800px;position:relative;} .allImgList{ overflow: hidden; width: 30%; height: 230p 阅读全文
posted @ 2017-11-16 17:43 磨人小妖精 阅读(6376) 评论(2) 推荐(0)
摘要:ajax的表单提交 $.ajax ({ url: "<%=basePath%>resource/addPortDetectOne.action", dataType: "json", method : 'post', data: $("#form_portDetect").serialize(), 阅读全文
posted @ 2016-12-19 11:44 磨人小妖精 阅读(1595) 评论(0) 推荐(0)
摘要:使用的是jgrid表格,bootstrap页面 {name:'listportDetect',index:'listportDetect', width:50,editable: true,formatter: function (cellvalue, options, rowObject) { v 阅读全文
posted @ 2016-12-19 11:25 磨人小妖精 阅读(856) 评论(0) 推荐(0)
摘要:在做页面的时候为了使页面美化,我们经常会用拼接字符串的方式,动态加载后台的数据,这里我们使用的前台框架是bootstrap,但是很多效果还是要用jquery来实现 (1)方法传参与字符串的拼接 (拼接用的replace) 先声明一个展示数据的页面模型(使用过的模型1) var userModel = 阅读全文
posted @ 2016-12-16 11:32 磨人小妖精 阅读(3142) 评论(0) 推荐(0)