Ajax request
error:function(jqXHR,textStatus,errorThrown)
{
console.log(jqXHR.);
console.log(textStatus);
console.log(errorThrown);
}
The error function has an error of errorthrown: referenceerror: data is not defined
after investigation, the problem is caused by datatype
datatype:“json”
Change to
datatype:“text”
Problem solving.
Read More:
- The browser is compatible with IE11 “ReferenceError: ‘Promise’ is not defined” “ReferenceError: ‘Promise’ is not defined”
- [Solved] Eval Error: Uncaught ReferenceError: False is not defined
- [Solved] Uncaught ReferenceError: FileAsyncWriter is not defined
- [Solved] Electron Error: ReferenceError: require is not defined
- [Solved] Uncaught ReferenceError: is not defined at HTMLAnchorElement.onclick
- How to Solve jQuery error: Uncaught ReferenceError: $ is not defined
- [Solved] Parcel Service Error: regeneratorRuntime is not defined
- AUC Error – ValueError: Data is not binary and pos_label is not specified
- cloud.callFunction:fail Error:wx is not defined [How to Solve]
- <script setup> Error: ‘defineProps‘ is not defined [How to Solve]
- VUE: Property or method “deleteFun“ is not defined on the instance but referenced during render. [How to Fix]
- [Solved] Canal Error: CanalParseException: column size is not match,parse row data failed
- [Solved] emcc error: error: LLVM_ROOT is not defined
- Vue Import Baidu map error: BMap is not defined, eslint BMap reports an error
- Solve the data transfer between vue irrelevant components error: this.$store.commit is not a function
- [Solved] MindSpore Error: Data type conversion of ‘Parameter’ is not supporte
- Error 2 error c2491: XX: definition of dllimport static data member is not allowed
- [Solved] Mac Install mongodb error: NonExistentPath: Data directory /data/db not found.
- Tensorflow error: InvalidArgumentError: indices[data_index] = data_value is not in [0, max_embedding_size)
- [Uniapp] Solve the error plus not defined when pushing