当前位置:网站首页>It's corrected. There's one missing < /script >, why doesn't the following template come out?
It's corrected. There's one missing < /script >, why doesn't the following template come out?
2022-07-04 01:37:00 【hamimelon2020】
<!DOCTYPE html>
<div id="v-model-example" class="demo">
<p>First name: {
{
firstName }}</p>
<p>Last name: {
{
lastName }}</p>
<user-name
v-model:first-name="firstName"
v-model:last-name="lastName">
</user-name>
</div>
<script src="https://unpkg.com/[email protected]"></script>
<script>
const app = Vue.createApp({
});
const UserName = {
props: {
firstName: String,
lastName: String
},
emits: ['update:firstName', 'update:lastName'],
template: ` <input type="text" :value="firstName @input="$emit('update:firstName', $event.target.value)"> <input type="text" :value="lastName @input="$emit('update:lastName', $event.target.value)"> `
};
const HelloVueApp = {
components: {
UserName,
},
data() {
return {
firstName: 'John',
lastName: 'Doe',
};
},
}
Vue.createApp(HelloVueApp).mount('#v-model-example')
</script>
边栏推荐
- MySQL utilise la vue pour signaler les erreurs, Explicit / show ne peut pas être publié; Verrouillage des fichiers privés pour la table sous - jacente
- “疫”起坚守 保障数据中台服务“不打烊”
- How to set the response description information when the response parameter in swagger is Boolean or integer
- How to view the computing power of GPU?
- C import Xls data method summary IV (upload file de duplication and database data De duplication)
- Stringutils and collectionutils
- Mobile phone battery - current market situation and future development trend
- I don't care about you. OKR or KPI, PPT is easy for you
- 技術實踐|線上故障分析及解决方法(上)
- 长文综述:大脑中的熵、自由能、对称性和动力学
猜你喜欢
JVM performance tuning and practical basic theory - medium
Ka! Why does the seat belt suddenly fail to pull? After reading these pictures, I can't stop wearing them
Force buckle day32
1-redis architecture design to use scenarios - four deployment and operation modes (Part 1)
Function: find the sum of the elements on the main and sub diagonal of the matrix with 5 rows and 5 columns. Note that the elements where the two diagonals intersect are added only once. For example,
Solution to the problem that jsp language cannot be recognized in idea
Who moved my code!
Huawei cloud micro certification Huawei cloud computing service practice has been stable
Install the pit that the electron has stepped on
Make drop-down menu
随机推荐
MPLS③
Lightweight Pyramid Networks for Image Deraining
Oracle database knowledge points that cannot be learned (III)
C import Xls data method summary III (processing data in datatable)
Function: write function fun to find s=1^k+2^k +3^k ++ The value of n^k, (the cumulative sum of the K power of 1 to the K power of n).
Summary of common tools and technical points of PMP examination
Feign implements dynamic URL
How to delete MySQL components using xshell7?
MySQL -- Introduction and use of single line functions
In the process of seeking human intelligent AI, meta bet on self supervised learning
C import Xls data method summary II (save the uploaded file to the DataTable instance object)
SRCNN:Learning a Deep Convolutional Network for Image Super-Resolution
How to view the computing power of GPU?
中电资讯-信贷业务数字化转型如何从星空到指尖?
C import Xls data method summary I (upload files and create Workbooks)
Typescript basic knowledge sorting
TP5 automatic registration hook mechanism hook extension, with a complete case
Introduction to unity shader essentials reading notes Chapter III unity shader Foundation
长文综述:大脑中的熵、自由能、对称性和动力学
Prose article appreciation - the rain in the warm country has never changed into cold, hard and brilliant flowers. Knowledgeable people think he is monotonous, and he thinks he is unlucky, doesn't he?