var classObj= { ToUnicode:function(str) { return escape(str).replace(/%/g,"\").toLowerCase(); }, UnUnicode:function(str) { return unescape(str.replace(/\/g, "%")); }, copyingTxt:function(str) { document.getElementById(str).select(); document.execCommand("Copy"); } };
相当有用,java的转换