$(document).ready(function(){ alert("test"); }); 这句报错。只能有两个原因。 1.JQ没载入,也就是地址错误。2.$变量冲突。 转载于:https://my.oschina.net/aki319/blog/59824