摘要: public static DataTable GetPM25ChartsByYear(string year, string seqId) { string sql = @"SELECT MAX(EPAir1) AS [max],AVG(EPAir1) AS [avg],MIN(EPAir1) A 阅读全文
posted @ 2016-07-12 22:36 change_4_now 阅读(241) 评论(0) 推荐(0) 编辑
摘要: $("#div").is(":hidden"); // 判断是否隐藏$("#div").is(":visible") 阅读全文
posted @ 2016-07-12 22:35 change_4_now 阅读(118) 评论(0) 推荐(0) 编辑
摘要: $(function () { $("#keyword").keyup(function () { var r = /^\d+\.?\d*$/; var obj = $("#keyword"); if (!r.test(obj.val())) { var s = parseInt(obj.val() 阅读全文
posted @ 2016-07-12 22:35 change_4_now 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 1.会四色五入 var num =2.446242342; num = num.toFixed(2); // 输出结果为 2.452.正则Number(15.7784514000.toString().match(/^\d+(?:\.\d{0,2})?/)) 3.最笨function get() { 阅读全文
posted @ 2016-07-12 22:34 change_4_now 阅读(14289) 评论(0) 推荐(1) 编辑
摘要: $("#all").change(function() { if ($(this).is(":checked")) { $(".checkTd").each(function () { $(this).find("span").addClass("checked"); }); } else { $( 阅读全文
posted @ 2016-07-12 22:34 change_4_now 阅读(101) 评论(0) 推荐(0) 编辑
摘要: $("#camera").change(function () { var obj = this; $("#camera_Name").val($("#camera option:selected").text()); $("#camera_Naming").val($(obj).val()); } 阅读全文
posted @ 2016-07-12 22:33 change_4_now 阅读(2910) 评论(0) 推荐(0) 编辑
摘要: function capture1(callback) { var modelIndex = $('#tabModel').tabs('option', 'active'); var childId = $('#tm' + (modelIndex + 1)).children().attr('id' 阅读全文
posted @ 2016-07-12 22:32 change_4_now 阅读(161) 评论(0) 推荐(0) 编辑
摘要: function myBrowser(){ var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串 var isOpera = userAgent.indexOf("Opera") > -1; if (isOpera) { return " 阅读全文
posted @ 2016-07-12 22:29 change_4_now 阅读(228) 评论(0) 推荐(0) 编辑
摘要: var width; var height; //获取窗口宽度 if (window.innerWidth) width = window.innerWidth; else if ((document.body) && (document.body.clientWidth)) width = doc 阅读全文
posted @ 2016-07-12 22:29 change_4_now 阅读(237) 评论(0) 推荐(0) 编辑
摘要: function checkIdCard(idCard) { //该方法由佚名网友提供; var Wi = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2, 1]; // 加权因子; var ValideCode = [1, 0, 10, 9 阅读全文
posted @ 2016-07-12 22:28 change_4_now 阅读(155) 评论(0) 推荐(0) 编辑