当我要制作“新Vue({...})时,总是会遇到此TypeError。我将vue.js脚本加载到我的Google Chrome扩展程序中,并将其附加在{
"mode": "All",
"policyRule": {
"if": {
"field": "type",
"equals": "Microsoft.Resources/subscriptions/resourceGroups"
},
"then": {
"effect": "deployIfNotExists",
"details": {
"type": "Microsoft.Authorization/locks",
"existenceCondition": {
"field": "Microsoft.Authorization/locks/level",
"equals": "CanNotDelete"
},
"roleDefinitionIds": [
"/providers/Microsoft.Authorization/roleDefinitions/18d7d88d-d35e-4fb5-a5c3-7773c20a72d9",
"/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c"
],
"deployment": {
"properties": {
"mode": "incremental",
"template": {
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json",
"contentVersion": "1.0.0.0",
"resources": [
{
"type": "Microsoft.Authorization/locks",
"apiVersion": "2017-04-01",
"name": "ResourceLock",
"properties": {
"level": "CanNotDelete",
"notes": "Prevent accidental deletion of resources"
}
}
]
}
}
}
}
}
},
"parameters": {}
}
-标记中。它已成功加载。不知道如何解决此错误
这是我加载vue js的方式
答案 0 :(得分:0)
PS:这是Google日历的Chrome扩展程序。
我通过在脚本末尾加载vue.js的脚本标记来解决此问题。 我正在操纵DOM在Google日历中注入一个按钮,当我在DOM操纵后加载vue.js脚本时,它就可以工作了。 (我不知道为什么)
谁能解释我的行为?