当前位置:网站首页>Why can't it run (unresolved)
Why can't it run (unresolved)
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')
边栏推荐
- What are the advantages and disadvantages of data center agents?
- 【.NET+MQTT】. Net6 environment to achieve mqtt communication, as well as bilateral message subscription and publishing code demonstration of server and client
- Cesiumjs 2022^ source code interpretation [8] - resource encapsulation and multithreading
- Flex flexible layout, box in the middle of the page
- C import Xls data method summary III (processing data in datatable)
- Should enterprises start building progressive web applications?
- Chinese Mitten Crab - current market situation and future development trend
- How programmers find girlfriends through blind dates
- A malware detection method for checking PLC system using satisfiability modulus theoretical model
- ES6 deletes an attribute in all array objects through map, deconstruction and extension operators
猜你喜欢

Openbionics exoskeleton project introduction | bciduino community finishing

Conditional statements of shell programming

JVM performance tuning and practical basic theory - medium

Remember a lazy query error

Introduction to Tianchi news recommendation: 4 Characteristic Engineering

Long article review: entropy, free energy, symmetry and dynamics in the brain

MySQL statement learning record

“疫”起坚守 保障数据中台服务“不打烊”

Huawei rip and BFD linkage

How programmers find girlfriends through blind dates
随机推荐
When the watch system of Jerry's is abnormal, it is used to restore the system [chapter]
Three layer switching ②
Logical operator, displacement operator
Force deduction solution summary 1189- maximum number of "balloons"
MySQL statement learning record
Introduction to Tianchi news recommendation: 4 Characteristic Engineering
Design of database table foreign key
Future源码一观-JUC系列
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).
技术实践|线上故障分析及解决方法(上)
Development of user-defined navigation bar in uniapp
Feign implements dynamic URL
Some other configurations on Huawei's spanning tree
Experimental animal models - current market situation and future development trend
Mobile asynchronous sending SMS verification code solution -efficiency+redis
Pyinstaller packaging py script warning:lib not found and other related issues
The force deduction method summarizes the single elements in the 540 ordered array
CLP information - how does the digital transformation of credit business change from star to finger?
SRCNN:Learning a Deep Convolutional Network for Image Super-Resolution
长文综述:大脑中的熵、自由能、对称性和动力学