随笔分类 -  Jquery

摘要:LiveList.sort(this.compare('StartDate')) //StartData:需要排序的时间 compare: function (property) { return function (a, b) { var value1 = (new Date(a[property 阅读全文
posted @ 2018-04-09 10:25 —阿峰— 阅读(272) 评论(0) 推荐(0) 编辑
摘要:var rowIds = jQuery("#list1").jqGrid('getDataIDs'); for (var k = 0; k < rowIds.length; k++) { var curRowData = jQuery("#list1").jqGrid('getRowData', r 阅读全文
posted @ 2018-01-19 11:20 —阿峰— 阅读(285) 评论(0) 推荐(0) 编辑
摘要:RemoveItem: function (val) { var index = selectedUsers.indexOf(val); if (index > -1) { selectedUsers.splice(index, 1); } } 阅读全文
posted @ 2017-10-31 10:41 —阿峰— 阅读(416) 评论(0) 推荐(0) 编辑
摘要:var date = new Date(parseInt(数据源.slice(6))); //获取到时间 年月日时分秒 var result = date.getFullYear() + '/' + (date.getMonth() + 1) + '/' + date.getDate(); //获取 阅读全文
posted @ 2017-10-31 10:36 —阿峰— 阅读(1518) 评论(0) 推荐(0) 编辑
摘要:function getNowFormatDate() { var date = new Date(); var seperator1 = "-"; var seperator2 = ":"; var month = date.getMonth() + 1; var strDate = date.g 阅读全文
posted @ 2017-10-31 10:32 —阿峰— 阅读(263) 评论(0) 推荐(0) 编辑
摘要:一、概述 除了正常运行模式,ECMAscript 5添加了第二种运行模式:“严格模式”(strict mode)。顾名思义,这种模式使得Javascript在更严格的条件下运行。 设立”严格模式”的目的,主要有以下几个: - 消除Javascript语法的一些不合理、不严谨之处,减少一些怪异行为; 阅读全文
posted @ 2016-05-30 10:01 —阿峰— 阅读(247) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.o 阅读全文
posted @ 2016-05-25 11:43 —阿峰— 阅读(212) 评论(0) 推荐(0) 编辑
摘要:function addFavorite() { var url = window.location; var title = document.title; var ua = navigator.userAgent.toLowerCase(); if (ua.indexOf("360se") > 阅读全文
posted @ 2016-05-25 11:41 —阿峰— 阅读(391) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示