当前位置:网站首页>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>
边栏推荐
- 长文综述:大脑中的熵、自由能、对称性和动力学
- Infiltration learning diary day19
- What are the advantages and disadvantages of data center agents?
- 7.1 learning content
- Maximum likelihood method, likelihood function and log likelihood function
- 求esp32C3板子连接mssql方法
- be based on. NETCORE development blog project starblog - (14) realize theme switching function
- MySQL -- Introduction and use of single line functions
- Msp32c3 board connection MSSQL method
- How to set the response description information when the response parameter in swagger is Boolean or integer
猜你喜欢

I don't care about you. OKR or KPI, PPT is easy for you

Huawei cloud micro certification Huawei cloud computing service practice has been stable

Luogu p1309 Swiss wheel

Use classname to modify style properties

JVM performance tuning and practical basic theory - medium

Rearrangement of tag number of cadence OrCAD components and sequence number of schematic page

Introduction to A-frame virtual reality development

Should enterprises start building progressive web applications?

Mobile asynchronous sending SMS verification code solution -efficiency+redis

Ka! Why does the seat belt suddenly fail to pull? After reading these pictures, I can't stop wearing them
随机推荐
Decompile and modify the non source exe or DLL with dnspy
Summary of common tools and technical points of PMP examination
Chinese Mitten Crab - current market situation and future development trend
File contains vulnerability summary
Force deduction solution summary 1189- maximum number of "balloons"
7.1 learning content
Long article review: entropy, free energy, symmetry and dynamics in the brain
Oracle database knowledge points (IV)
Which insurance products can the elderly buy?
AI helps make new breakthroughs in art design plagiarism retrieval! Professor Liu Fang's team paper was employed by ACM mm, a multimedia top-level conference
51 MCU external interrupt
【.NET+MQTT】.NET6 环境下实现MQTT通信,以及服务端、客户端的双边消息订阅与发布的代码演示
Query efficiency increased by 10 times! Three optimization schemes to help you solve the deep paging problem of MySQL
Three layer switching ①
Flutter local database sqflite
Print diamond pattern
在寻求人类智能AI的过程中,Meta将赌注押向了自监督学习
String hash, find the string hash value after deleting any character, double hash
Stringutils and collectionutils
Audio resource settings for U3D resource management