上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 19 下一页
摘要: 1.后台传来的数据 2.页面模版 <tbody id="lists"> <script type="text/html" id="checkrecords"> {{if checkRecords.length==0}} <tr> <td colspan="5">无审核记录</td> </tr> {{ 阅读全文
posted @ 2017-06-21 10:18 boyanh 阅读(164) 评论(0) 推荐(0) 编辑
摘要: $(function() {$("button[type=submit]").unbind();//取消之前的绑定事件$("#sub-btn").click(function(){ var n = $("#set-pager").find("input[type=checkbox]:checked" 阅读全文
posted @ 2017-06-20 17:30 boyanh 阅读(309) 评论(0) 推荐(0) 编辑
摘要: http://www.w3school.com.cn/jquery/ajax_getjson.asp 阅读全文
posted @ 2017-06-13 10:53 boyanh 阅读(569) 评论(0) 推荐(0) 编辑
摘要: Window 尺寸 有三种方法能够确定浏览器窗口的尺寸(浏览器的视口,不包括工具栏和滚动条)。 对于Internet Explorer、Chrome、Firefox、Opera 以及 Safari: window.innerHeight - 浏览器窗口的内部高度 window.innerWidth 阅读全文
posted @ 2017-06-13 10:47 boyanh 阅读(2678) 评论(0) 推荐(0) 编辑
摘要: 解决方法 下面的这种方法获取到url中的中文参数是乱码 unescape() 说明 该函数的工作原理是这样的:通过找到形式为 %xx 和 %uxxxx 的字符序列(x 表示十六进制的数字),用 Unicode 字符 \u00xx 和 \uxxxx 替换这样的字符序列进行解码。 提示和注释 注释:EC 阅读全文
posted @ 2017-06-13 09:13 boyanh 阅读(1465) 评论(0) 推荐(0) 编辑
摘要: js 为什么计算结果老是出现NaN 可能原因: js 为什么计算结果老是出现NaN 可能原因: 1、操作的两个数,类型不一致 2、有一个值为NaN,计算後为NaN 1. 转换函数: js提供了parseInt()和parseFloat()两个转换函数。前者把值转换成整数,后者把值转换成浮点数。只有对 阅读全文
posted @ 2017-06-09 10:32 boyanh 阅读(31057) 评论(0) 推荐(0) 编辑
摘要: input checkbox 禁止选中 <input type="checkbox" onclick="return false;" /> input checkbox 选中状态 禁止修改 <input type="checkbox" onclick="return false;" checked= 阅读全文
posted @ 2017-06-08 15:15 boyanh 阅读(22883) 评论(0) 推荐(1) 编辑
摘要: //加载数据 function loadList(){ var url = "../../exam_questions/json?type=" + typ + "&page=" + page; $.ajax({ type: 'GET', url: url, success:function(data 阅读全文
posted @ 2017-06-06 15:56 boyanh 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 两个空格的话就是两个%20 阅读全文
posted @ 2017-06-05 11:14 boyanh 阅读(2097) 评论(0) 推荐(0) 编辑
摘要: 当前网址 http://localhost:8080/exam_paper/402881ec5c3924ec015c394ee4210000/set_questions ajax请求url var url = "exam_questions/json?type=" + type ; 请求之后的网址 阅读全文
posted @ 2017-06-04 17:09 boyanh 阅读(994) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 19 下一页