(content)+"&id=1" ;
在參數後加 encodeURIComponent
(content)+"&id=1" ;
在參數後加 encodeURIComponent
功能: 用來美化、裝飾網站等。 屬性: OnLoad:表示要觸發的事件是加載頁面時。 On
本地起tomcat服務默認是http的,但是ajax請求的url是https,也就是跨域了。 然後不走後臺,瀏覽器F12顯示405 所以要配置一下tomcat,參考tomcat8.5配置http
word: BufferedInputStream bis = null; URL url = null; HttpURLConnection h