摘要: 参考网上资料 //弹出加载层 //取消加载层 调用ajax请求时,如果不生效,去掉async:false试试 阅读全文
posted @ 2017-11-26 09:45 time_on 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 英文原文地址:http://dmitry.baranovskiy.com/post/91403200 Dmitry Baranovskiy 的博客中有篇文章(http://dmitry.baranovskiy.com/post/91403200),其中有五段小代码,用来测试是否理解 JavaScri 阅读全文
posted @ 2017-11-17 16:01 time_on 阅读(83) 评论(0) 推荐(0) 编辑
摘要: function renameProperties(sourceObj, replaceList, destObj) { destObj = destObj || {}; // for each property in source object $.each(sourceObj, function(key) { // if the property re... 阅读全文
posted @ 2017-11-17 15:52 time_on 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 1、网页中常常看见有这样的标记,他们是清浏览器缓存用的啊,记录下来,方便以后查询,以免忘记 PS:清除浏览器中的缓存,它和其它几句合起来用,就可以使你再次进入曾经访问过的页面时,ie浏览器必须从服务端下载最新的内容,达到刷新的效果。 2、这个标签是什么作用? 就比如你百度某一些东西,只知道某些特征, 阅读全文
posted @ 2017-11-17 15:49 time_on 阅读(143) 评论(0) 推荐(0) 编辑
摘要: //第1种写法 function Circle(r) { this.r = r; } Circle.PI = 3.14159; Circle.prototype.area = function () { return Circle.PI * this.r * this.r; } var c = new Circle(1.0); alert(c.area()); //第2种写法 ... 阅读全文
posted @ 2017-11-17 11:36 time_on 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 1判断select选项中 是否存在Value="paraValue"的Item 2向select选项中 加入一个Item 3从select选项中 删除一个Item 4删除select中选中的项 5修改select选项中 value="paraValue"的text为"paraText" 6设置sel 阅读全文
posted @ 2017-11-17 11:33 time_on 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 这两种方式等效: /**用法$("#bb").tooltip1();$("#bb").tooltip2();*/ (function ($) {$.fn.tooltip1 = function( options ) {var $this = $(this);var txt = $this.html( 阅读全文
posted @ 2017-11-16 11:30 time_on 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 主页面 datagrid-dnd.html jQuery EasyUI Demo datagrid-dnd.js (function($){ $.extend($.fn.datagrid.defaults, { dropAccept: 'tr.datagr... 阅读全文
posted @ 2017-11-15 15:56 time_on 阅读(862) 评论(0) 推荐(0) 编辑
摘要: //参数为需要进行过滤的tree和模糊查询关键字 function searchDataSet(value) { //获取tree数据 var treeData = new Array(); var newTreeData = new Array(); $.ajax({ url: '/core/dataset/getTree/', ... 阅读全文
posted @ 2017-11-15 15:51 time_on 阅读(1171) 评论(0) 推荐(0) 编辑
摘要: <label for="checkModelVersion" title="show versions">versions</label> <input type="checkbox" id="checkModelVersion" checked="checked" onchange=""> //1 阅读全文
posted @ 2017-10-11 16:20 time_on 阅读(126) 评论(0) 推荐(0) 编辑