ajax リクエストを tomcat サーバーに送信し、次のように応答を取得しています。
function getAgentName(){
$.ajax({
type: "POST",
url: "agentName.html",
success: function(response){
// we have the response
if(response != null && response !="" && response !="null"){
alert( "response :"+$.trim(response)); // line 10
}
},
error: function(e){
alert('Error: ' + e);
},
complete:function(){
getAgentName();
}
});
}
as の成功alert
の応答でエラーが発生しました 。line 10
'$' is null or not an object
編集:私はすでに追加しましたJquery 1.9.1.js
。
これを解決する方法がわかりません。私たちのスタックユーザーが私を助けてくれることを願っています.