摘要: 安装时报如下错误 18:46:27 CST retry: [node1]18:46:33 CST [ERRO] check remote file exist err: strconv.Atoi: parsing "Welcome to 5.10.0-136.12.0.86.oe2203sp1.x8 阅读全文
posted @ 2023-05-05 19:06 金色海 阅读(89) 评论(0) 推荐(0) 编辑
摘要: String.prototype.startWith=function(s){ if(s==null||s==""||this.length==0||s.length>this.length) return false; if(this.substr(0,s.length)==s) ... 阅读全文
posted @ 2015-06-25 10:47 金色海 阅读(2012) 评论(0) 推荐(0) 编辑
摘要: function submitImg(imgid,formid,imginfo){ var filepath=$("#"+imgid).val(); var extStart=filepath.lastIndexOf("."); if(extStart!=... 阅读全文
posted @ 2015-05-19 11:53 金色海 阅读(3985) 评论(1) 推荐(0) 编辑
摘要: Jquery:$("#accuracy").val($("#accuracy").val().replace(/\ +/g,""));//去掉空格.replace(/\ +/g,"") //去掉空格方法$("#content").val($("#content").val().replace(/[ ... 阅读全文
posted @ 2015-03-25 16:05 金色海 阅读(3480) 评论(0) 推荐(0) 编辑
摘要: // 获取url参数function getUrlParam(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); // 构造一个含有目标参数的正则表达式对象 var r = window.location.sea... 阅读全文
posted @ 2015-03-24 10:58 金色海 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 核心代码//针对对象数据进行排序propertyName 要排序的属性名,order 1为正序0为倒序function compare(propertyName,order) { return function (object1, object2) { var value1 ... 阅读全文
posted @ 2015-03-24 10:56 金色海 阅读(3114) 评论(0) 推荐(0) 编辑
摘要: css代码段.crm_tc_bg {width: 100%;height: 100%;position: fixed;display: block;top: 0;left: 0;background: #000;filter: apha(opacity=50);-moz-opacity: 0.5;o... 阅读全文
posted @ 2015-01-22 14:24 金色海 阅读(488) 评论(0) 推荐(0) 编辑
摘要: 对于一般性手机(pad)浏览器的判断 彻底解决UC浏览器不能准确判断的问题 阅读全文
posted @ 2015-01-22 11:35 金色海 阅读(1034) 评论(1) 推荐(0) 编辑