你写成$("#box").text(data);
.html换成text试试
你把文件代码贴出来,让大家看一下
notepad++
已经解决了
url指向的php页面没有echo吧?
分析:浏览器为了安全性考虑,默认对跨域访问禁止。
解决:给浏览器传入启动参数(allow-file-access-from-files),允许跨域访问。
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --allow-file-access-from-files
你是说jsp?
notepad++