当前位置:网站首页>I don't know why it can't run in the project and how to change it
I don't know why it can't run in the project and how to change it
2022-07-04 01:37:00 【hamimelon2020】
<template>
<div>
<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>
</template>
<script>
export default {
name: 'Item',
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: {
Item,
},
data() {
return {
firstName: 'John',
lastName: 'Doe',
};
},
}
Vue.createApp(HelloVueApp)
</script>
边栏推荐
- Openbionics exoskeleton project introduction | bciduino community finishing
- Since the "epidemic", we have adhered to the "no closing" of data middle office services
- Remember a lazy query error
- mysql使用视图报错,EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
- gslb(global server load balance)技术的一点理解
- Three layer switching ②
- LeetCode226. Flip binary tree
- Three layer switching ①
- File contains vulnerability summary
- Flutter local database sqflite
猜你喜欢

Introduction to unity shader essentials reading notes Chapter III unity shader Foundation

Three layer switching ②

Infiltration learning diary day19

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).

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,

Douban scoring applet Part-3

How programmers find girlfriends through blind dates

Luogu p1309 Swiss wheel

Introduction to Tianchi news recommendation: 4 Characteristic Engineering

MySQL deadly serial question 2 -- are you familiar with MySQL index?
随机推荐
Flex flexible layout, box in the middle of the page
技术实践|线上故障分析及解决方法(上)
Delete all elements with a value of Y. The values of array elements and y are entered by the main function through the keyboard.
Audio resource settings for U3D resource management
Oracle database knowledge points that cannot be learned (II)
Query efficiency increased by 10 times! Three optimization schemes to help you solve the deep paging problem of MySQL
All in one 1407: stupid monkey
Feign implements dynamic URL
MySQL -- Introduction and use of single line functions
Trading software programming
Typescript basic knowledge sorting
Introduction to superresolution
Three layer switching ②
I don't care about you. OKR or KPI, PPT is easy for you
Fundamentals of machine learning: feature selection with lasso
All in one 1412: binary classification
Cesiumjs 2022^ source code interpretation [8] - resource encapsulation and multithreading
How can enterprises optimize the best cost of cloud computing?
Maximum likelihood method, likelihood function and log likelihood function
Remember a lazy query error