随笔分类 - JS
摘要:done(data,curr, count){ var tableView = this.elem.next(); var totalRow = tableView.find('.layui-table-total'); layui.each(totalRow.find('td'), functio
阅读全文
摘要:<script src="http://pv.sohu.com/cityjson?ie=utf-8"></script>
阅读全文
摘要:1 2 3 //...引入jquery.js 方法1: 方法2:$("#a option:not(:first)").remove(); //参考 jQuery获取Select选择的Text和Value: 1. var checkText=jQuery("#select_id").find("option:selected").text(); //获取Se...
阅读全文
摘要:{volist name="tptop" id="vo"} {if condition="$vo['show'] eq 1"} {if condition="$vo['links'] neq ''"} {$vo.name...
阅读全文
摘要:前台 然后写ajax请求,带入分页page。 后台对传过来的page参数进行处理:
阅读全文
摘要:这个是封装好的方法: 如果有中文参数时,会出现乱码,解决方法就是:将解码方式unscape换为decodeURI 原因:浏览器会将url中的中文参数进行encodeURI编码,所以要通过js使用decodeURI进行解码 本文转至园友 codefly-sun 感谢
阅读全文
摘要:<script type="text/javascript" src="__ROOT__/Index/Tpl/Public/js/jquery.js"></script> <script type="text/javascript" src="__ROOT__/Index/Tpl/Public/js
阅读全文