function GetQueryString(name) {var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");var r = window.location.search.substr(1).match(reg);if (r != null) return unescape(r[2]); return null;}我的表達式沒錯啊他老是提示錯誤我的調用是這樣的 RequesByPostMethod("/Home/GetClothingDetail", GetQueryString("id"), function (data) {....這是IE瀏覽器里的錯誤jQuery.Deferred exception: 正則表達式語法錯誤 SyntaxError: 正則表達式語法錯誤 at GetQueryString (http://localhost:54417/Content/js/ajaxfunc.js:21:5at Search (http://localhost:54417/Home/details:494:9)at Anonymous function (http://localhost:54417/Home/details:523:9)at l (http://localhost:54417/Content/js/jquery-3.3.1.min.js:2:29367) at Anonymous function (http://localhost:54417/Content/js/jquery-3.3.1.min.js:2:29677) undefined
大神們幫幫忙啊啊啊啊
素胚勾勒不出你
2018-08-16 10:09:32