js 编码解码

unescape($("#id").val()) // html解码

escape($("#id").val())  //html编码

非常易用的JS,使用啊。

posted @ 2011-12-28 12:10  高捍得  阅读(173)  评论(0)    收藏  举报