Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将值附加到我从 ajax 请求返回的响应文本中。
我用下面的代码
$(document).ajaxSuccess(function(event, response, settings) { var resp = response.responseText; });
假设我收到响应文本
IE
/home/xyz
我想追加
/home/xyz/abc
任何帮助表示赞赏
如果我理解你的问题是正确的,你总是可以做
$(document).ajaxSuccess(function(event, response, settings) { var resp = response.responseText; var new_resp = resp + '/abc'; window.location.href = new_resp; });