javascript 中的预期标识符或字符串 [英] Expected identifier or string in javascript
本文介绍了javascript 中的预期标识符或字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
function GetHTML(url, para) {
var data = $.ajax({
url: url,
global: false,
type: "POST",
data: para,
dataType: "html",
async: false,
}).responseText;
return data;
}
好吧,当我运行这个函数时,它运行良好,但我遇到了 Visual Studio 告诉我的问题 预期标识符或字符串
well when i run this function it's work good but i got the problem that Visual studio tell me Expected identifier or string
他们在这段代码中有什么问题吗?好吧,告诉我我该怎么做才能消除这个错误
are their anything goes wrong in this code. well tell me what i do to remove this error
推荐答案
去掉async: false
后的逗号,
尝试使用 jslint - 它可以帮助处理此类问题.
Try using jslint - it can help pick up things like this.
这篇关于javascript 中的预期标识符或字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文