-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Timmy
committed
Aug 6, 2024
1 parent
1fc1fd6
commit 870e12d
Showing
8 changed files
with
44 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
{ | ||
"hash": "446d40e3", | ||
"configHash": "6c6edbbb", | ||
"lockfileHash": "b34d2fa7", | ||
"browserHash": "d111c7b4", | ||
"hash": "f3242232", | ||
"configHash": "fe60ac90", | ||
"lockfileHash": "762acec5", | ||
"browserHash": "1be8925e", | ||
"optimized": { | ||
"vue": { | ||
"src": "../../../../node_modules/vue/dist/vue.runtime.esm-bundler.js", | ||
"file": "vue.js", | ||
"fileHash": "5b3c5d0f", | ||
"fileHash": "bb685db5", | ||
"needsInterop": false | ||
}, | ||
"vitepress > @vue/devtools-api": { | ||
"src": "../../../../node_modules/@vue/devtools-api/dist/index.js", | ||
"file": "vitepress___@vue_devtools-api.js", | ||
"fileHash": "06a95f44", | ||
"fileHash": "173a7456", | ||
"needsInterop": false | ||
}, | ||
"vitepress > @vueuse/core": { | ||
"src": "../../../../node_modules/@vueuse/core/index.mjs", | ||
"file": "vitepress___@vueuse_core.js", | ||
"fileHash": "174525ac", | ||
"fileHash": "b9fa94d0", | ||
"needsInterop": false | ||
} | ||
}, | ||
"chunks": { | ||
"chunk-RY5ODQAQ": { | ||
"file": "chunk-RY5ODQAQ.js" | ||
"chunk-MNKFN2UC": { | ||
"file": "chunk-MNKFN2UC.js" | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
docs/.vitepress/cache/deps/vitepress___@vue_devtools-api.js.map
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
title: 沒有node環境時,vue的模板要寫在哪裡? | ||
--- | ||
# 在沒有node js環境時,vue的模板要寫在哪裡? | ||
## 可以寫在script標籤裡,type寫text/template,這樣瀏覽器不會抱錯也不會渲染。 | ||
|
||
```js vue [template] | ||
<script type="text/template" id="template"> | ||
<div> | ||
{{message}} | ||
</div> | ||
</script> | ||
<div id="app"></div> | ||
<script> | ||
const { createApp, ref } = Vue | ||
createApp({ | ||
template:'#template', | ||
setup() { | ||
const message = ref('Hello vue!') | ||
return { | ||
message | ||
} | ||
} | ||
}).mount('#app') | ||
</script> | ||
``` |