文章分类 - 常用
摘要:添加css .ant-descriptions-bordered table { table-layout: fixed; }
阅读全文
摘要:获取变量类型 string object arry null undefined 等等 // 获取变量类型 export const getPrototype = (val: any) => { const typename = Object.prototype.toString.call(val)
阅读全文
posted @ 2023-08-07 09:32
huihui2014
摘要:强制刷新组件 this.forceUpdate(); //强制刷新组件 //react 转html function createMarkup(str) { return { __html: str }; } <div dangerouslySetInnerHTML={createMarkup(ti
阅读全文
posted @ 2023-08-07 09:32
huihui2014
摘要:em: body{ font-size:62.5%; } rem html{ font-size:62.5%; }
阅读全文
摘要:var currturl = window.location.href; //获取当前url var body_widths=isMobile=="true"?window.innerWidth:document.body.clientWidth; var body_heights=isMobile
阅读全文
posted @ 2019-04-13 12:19
huihui2014
摘要:判断对象长度 Object.getOwnPropertyNames(cutomerinfo).length 设置对象属性 cutomerinfo[id]=type; 删除对象属性 delete cutomerinfo.id delete cutomerinfo[id]; //删除属性为id的值 遍历
阅读全文
posted @ 2018-07-26 16:04
huihui2014
摘要:*{ margin:0px; padding:0px; } html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, address, cite, code, del, df
阅读全文
posted @ 2018-07-05 16:04
huihui2014
摘要:jquery判断对象是否获得焦点 var isFocus=$("#tRow").is(":focus"); if(true==isFocus){ alert("focus"); }else{ alert("blur"); } jQuery序列化表单 var fields=$(elem).serial
阅读全文
posted @ 2018-01-02 20:05
huihui2014
摘要:var pagesize = 10;//每页条数 var OpenID = isnull(sessionStorage.getItem("OpenID")); //缓存中的OpenID; var currturl = window.location.href; //获取当前url var mname
阅读全文
posted @ 2017-07-21 20:24
huihui2014
摘要:获取图片大小 function imgLoad(imgSrc){ return new Promise(function (resolve, reject) { var ImgObj = new Image(); ImgObj.src = imgSrc; if (ImgObj.fileSize >
阅读全文
posted @ 2017-07-17 12:08
huihui2014

浙公网安备 33010602011771号