问题描述
请,我在使用sntax时遇到麻烦,我不知道为什么。 我的脚本是
protected Object doInvoke(ExecutionCallback callback,Object target,Message<?> message) {
try {
Object result = callback.execute();
if (this.onSuccessExpression != null) {
this.evaluateSuccessExpression(message);
}
return result;
} catch (RuntimeException var7) {
Exception actualException = this.unwrapExceptionIfNecessary(var7);
if (this.onFailureExpression != null) {
Object evalResult = this.evaluateFailureExpression(message,actualException);
似乎错误在行中
var popup = document.getElementById("mypopup");
var span = document.getElementsByClassName("close-btn")[0];
var sticker = document.getElementsByClassName("sticker")[0];
window.onload = function() {
popup.style.display = "inline-block";
sticker.style.display = "none";
}
span.onclick = function() {
popup.style.display = "none";
sticker.style.display = "inline-block";
}
window.onclick = function(event) {
if (event.target == popup) {
popup.style.display = "none";
sticker.style.display = "block";
}
}
控制台消息只是“ Uncaught SyntaxError:Unexpected identifier”,并且仅出现在生产环境中。
希望您能救我!
解决方法
您需要使用addEventListener
像这样
await Firestore.instance
.collection(collectionId)
.document(documentId)
.delete();
还是不行