javascript 字符轉義方法

備着,說不定後面還有用 : -)javascript //轉碼 function html_encode(str) { var s = ""; if (str.length == 0) return ""; s = str.replace(/&/g, "&"); s = s.replace(/</g, "<"); s = s.replace(/
相關文章
相關標籤/搜索