当前位置:网站首页>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')
边栏推荐
- 查询效率提升10倍!3种优化方案,帮你解决MySQL深分页问题
- MySQL - use of aggregate functions and group by groups
- Openbionics exoskeleton project introduction | bciduino community finishing
- 2020-12-02 SSM advanced integration Shang Silicon Valley
- Chinese Mitten Crab - current market situation and future development trend
- About uintptr_ T and IntPtr_ T type
- MySQL statement learning record
- Oracle database knowledge points (I)
- 0 basic learning C language - nixie tube dynamic scanning display
- 技术实践|线上故障分析及解决方法(上)
猜你喜欢

MySQL - use of aggregate functions and group by groups

Conditional statements of shell programming

Avoid playing with super high conversion rate in material minefields

Use classname to modify style properties

SRCNN:Learning a Deep Convolutional Network for Image Super-Resolution

JVM performance tuning and practical basic theory - medium

Audio resource settings for U3D resource management

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

Solution to the problem that jsp language cannot be recognized in idea

51 MCU external interrupt
随机推荐
Gee: create a new feature and set corresponding attributes
Huawei rip and BFD linkage
Query efficiency increased by 10 times! Three optimization schemes to help you solve the deep paging problem of MySQL
Openbionics exoskeleton project introduction | bciduino community finishing
Is Shengang securities company as safe as other securities companies
【.NET+MQTT】. Net6 environment to achieve mqtt communication, as well as bilateral message subscription and publishing code demonstration of server and client
Force deduction solution summary 1189- maximum number of "balloons"
How can enterprises optimize the best cost of cloud computing?
Three layer switching ②
LeetCode 168. Detailed explanation of Excel list name
Notice on Soliciting Opinions on the draft of information security technology mobile Internet application (APP) life cycle security management guide
7.1 learning content
Who moved my code!
Human resource management online assignment
How to set the response description information when the response parameter in swagger is Boolean or integer
About uintptr_ T and IntPtr_ T type
[typora installation package] old typera installation package, free version
MySQL introduction - functions (various function statistics, exercises, details, tables)
Avoid playing with super high conversion rate in material minefields
Chinese Mitten Crab - current market situation and future development trend