
js
zcaixx
这个作者很懒,什么都没留下…
展开
-
layer 插件的应用(持续更新中)
1.信息提示框(没有按钮,自动消失)layer.msg("保存成功!",{icon:7});//{icon:7}-->图标2.信息提示框(有按钮,点击消失)layer.alert("保存成功!",{icon:6});//{icon:6}-->图标3.判断对话框(“是”,“否” 两个按钮,分别有各自对应的逻辑)layer原创 2018-10-27 11:38:04 · 224 阅读 · 0 评论 -
针对传参乱码问题的处理
举例:导出方法function daochu_xq(){ location.href=encodeURI(encodeURI("getCommonFzcltj_xqExcel?requestSrc=1&carname="+carname_daochu+"&jllx="+jllx_daochu)); }//此处用了两个encodeURI,是加密措施controlle...原创 2018-11-23 11:37:11 · 133 阅读 · 0 评论 -
BootStrap table 自定义变色
在css中.table-striped > tbody > tr:nth-child(2n+1) > td, .table-striped > tbody > tr:nth-child(2n+1) > th { background-color: rgb(242, 245, 247);//此处是自己想用的颜色 }对于jq中想要变色,会发现,t...原创 2018-11-23 11:46:12 · 1345 阅读 · 0 评论 -
js 四舍五入保留两位小数
var a=2.1512131231231321;a.toFixed(2);原创 2019-03-14 22:55:52 · 114 阅读 · 0 评论