摘要:
HTML Code1 2 3 4 JS Code 1 $(document).ready(function(){ 2 if ($.cookie("rmbUser") == "true") { 3 $("#ck_rmbUser").prop("checked", true); 4 $("#username").val($.cookie("username")); 5 $("#password").remove(); 6 $("#pass" 阅读全文
摘要:
1、原生JavaScript实现字符串长度截取 1 function cutstr(str, len) { 2 var temp; 3 var icount = 0; 4 var patrn = /[^\x00-\xff]/; 5 var strre = ""; 6 for (var i = 0; i /g, '>')3 }View Code6、原生JavaScript还原html标签1 function HtmlDecode(text) {2 return text.replace(/&/g, '&') 阅读全文