JS error, finally found that the $(function () {}) part () is incomplete
$(function({
$("#directionSelect").change(function(){
$.ajax({
url:"",
success:function(data){
if(data.state=="fail"){
alert("The system is busy, please try again later!");
}else{
}
}
});
});
});
After summarizing the previous errors, it is found that most of the errors are incomplete symbols, such as missing a bracket or a quotation mark
Similar Posts:
- When parsing background JSON data with Ajax: unexpected token o in JSON at position 1
- Ajax “SyntaxError: missing ; before statement” [How to Solve]
- Convert to IE9 below $. Ajax to return “no transport” across domains
- [reprint] extjs sets the timeout of Ajax request
- [Solved] Uncaught SyntaxError: Unexpected end of JSON input at JSON.parse
- The full calendar obtains the events report uncaught type error: callback is not a function from the background
- [Solved] Jquery ajax “Uncaught TypeError: Illegal invocation”
- Uncaught Error: _registerComponent(…): Target container is not a DOM element
- The Oracle File Attribute change causes the instance to fail to mount the Disk [How to Fix]
- [Solved] JS Ajax uploads an error “uncaught type error: illegal invocation”