1.‘Syntax error,unrecognized expression’
In both cases allClasses variable ends with a comma at the end, so the final selector is something like .s0.s1,.s2,s3,s4, what is acceptable in jQuery 1.7, but doesn’t work in 1.8+.
最后以逗号结尾了,这个在jQuery 1.7是合法的,在jQuery 1.8就不合法了。
2.‘Uncaught SyntaxError: Unexpected identifier at Object.success error,unrecognized expression’
JSON解析格式错误