javascript实现unicode与ASCII相互转换的方法
html 中文 汉字 转化 实体编码 //AsciiToUnicode("中国"); UnicodeToAscii("测试"); //ASCII 转换 Unicode function AsciiToUnicode(content) { result = ''; for (var i=0; i<content.length; i++) result+='&#' + content.charCodeAt(i) + ';'; …
592 2016-10-19 去围观js html标签转化过滤
html特殊标签字符转义 js转化html标签 正则 过滤 危险 特殊 字符 //去掉html标签 function removeHtmlTab(tab) { return tab.replace(/<[^<>]+?>/g,'');//删除所有HTML标签 } //只删除a标签 function delHtmlTag(str){re…
1,171 2016-10-07 去围观css3倒影属性 box-reflect
谷歌兼容 CSS代码: .reflect-below-p { padding-bottom: 176px; } .reflect-below { -webkit-box-reflect: below; } .reflect-right { -webkit-box-reflect: right; } .reflect-right-translate { -webkit-box-reflect: right 10px; } …
627 2016-09-29 去围观