摘要:
1 是否为数字(包含Float) 2 var isFloatNum = function (str) { 3 var re = /^(-?\d+)(\.\d+)?$/ 4 return re.test(str); 5 } 阅读全文
摘要:
三、配置bootstrapTable 四、后台接受排序参数 阅读全文
摘要:
1 pgHelper.getPgConfig = function (cf) { 2 return { 3 url: cf.url, //请求后台的URL(*) 4 method: 'post', //请求方式(*) 5 toolbar: '#toolbar', ... 阅读全文
摘要:
1 if( document.getElementById("div").css("display")==='none') {} 2 3 if( document.getElementById("div").css("display")==='block') {} 4 5 $("#div").is(":hidden"){}; // 判断是否隐藏 6 7 $("#div").is(":vi... 阅读全文
摘要:
1 //回车查询 2 $("body").keydown(function () { 3 if (event.keyCode == "13") {//keyCode=13是回车键 4 $('#btn_search').click(); 5 } 6 }); 阅读全文
摘要:
1 $("#sub_UserID").val().replace(/[&\|\\\*^%$'"#@\-]/g, "") 阅读全文
摘要:
//iCheck 初始化 1 获取选中值 var isprivate = $('input:radio[name=isprivate]:checked').val(); 1 //ifChecked radio设置方法 2 $("input[name='isType']").eq(1).prop('checked'... 阅读全文
摘要:
1 --日期运算 (DATEDIFF ( DAY , tblW.CreatTime , GETDATE() ) <=tblW.Effective 阅读全文
摘要:
/// /// 阿里云图片保存 /// /// /// /// 0代表是默认的图片上传,1代表是新闻的图片上传 /// private string SaveAliyunOSS(HttpPostedFileBase file, string fileName, int op... 阅读全文
摘要:
/// /// 文件上传 /// /// /// /// public string FileSaveAliyunOSS(HttpPostedFileBase file, string fileName) { string FilePath = "";... 阅读全文