AJAX传递中文字符串时必须把中文字符串编码成unicode,一般会用到JS的自带函数escape().不过找到了更好的函数来确决中文字符转换成unicode编码的函数 function uniencode(text) { text = escape(text.toString()).replace(/\+/g, "%2B"); var matches = text.match(/(%([0-9A-F]{2}))/gi); &nb...[ 查看全文 ]
近日,Eclipse经常挂掉,都是由于JVM崩溃的原因。每次都有以下错误日志: # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x7bab036c, pid=12169, tid=3072990096 # # JRE version: 6.0_17-b04 # Java VM: Java HotSpot(TM) Server VM (14.3-b01 mixed mode linux-x86 ) # Problematic frame: # C [libxul.so+0xc8236c] # # If you would like ...[ 查看全文 ]