goldprice.aspx源碼:Response.ContentType = "text/plain"; StringBuilder sb = new StringBuilder(); .... for (int i = 0; i < dt.Rows.Count; i++) { sb.AppendFormat("{0}:", dt.Rows[i]["name"]); } Response.Write("document.write(" + sb.ToString()+ ")"); Response.End();我想在html文件中通過加載script文件來輸出一些文字。 為何這樣寫不行?沒有任何文字輸出, F12開發(fā)者工具檢查也沒內(nèi)容。 但是請求http://www.8kmm.com/product/goldprice.aspx?d=get又有輸出。 這是什么情況
添加回答
舉報
0/150
提交
取消
