僅作爲一個記錄。
"Vue CDN Test Template": {
"prefix": "Vue Test",
"body": [
"<!DOCTYPE html>",
"<html lang=\"en\">",
"<head>",
" <meta charset=\"UTF-8\">",
" <title>${0: Test Name} | Vue CDN Test</title>",
" <script src=\"./Vue.js/2.5.17/vue.js\"></script>",
" ",
" <script>",
" // 註冊組件的script放在頭文件中預渲染",
" Vue.component('', {",
" props: [],",
" template: ''",
" })",
" </script>",
" ",
"</head>",
"<body>",
" ",
" <div id=\"app\">",
" ",
" </div>",
" ",
" <script>",
" var vm = new Vue({",
" el: '#app',",
" data: {",
" ",
" },",
" methods: {",
" ",
" }",
" })",
" </script>",
" ",
"</body>",
"</html>",
],
"description": "Vue CDN Test html template"
}