当前位置:网站首页>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')
边栏推荐
- Experimental animal models - current market situation and future development trend
- ThinkPHP uses redis to update database tables
- [turn] solve the problem of "RSA public key not find" appearing in Navicat premium 15 registration
- Functions and arrays of shell scripts
- MySQL uses the view to report an error, explain/show can not be issued; lacking privileges for underlying table
- Remember a lazy query error
- Mobile asynchronous sending SMS verification code solution -efficiency+redis
- LeetCode226. Flip binary tree
- Do you know the eight signs of a team becoming agile?
- 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
猜你喜欢

MPLS③

How to set the response description information when the response parameter in swagger is Boolean or integer

Characteristics of ginger

How to use AHAS to ensure the stability of Web services?

In the process of seeking human intelligent AI, meta bet on self supervised learning

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

Pratique technique | analyse et solution des défaillances en ligne (Partie 1)

Use classname to modify style properties

Remember a lazy query error

Feign implements dynamic URL
随机推荐
Some other configurations on Huawei's spanning tree
Introduction to superresolution
Is Shengang securities company as safe as other securities companies
Hbuilder link Xiaoyao simulator
MySQL statement learning record
CesiumJS 2022^ 源码解读[8] - 资源封装与多线程
Introduction to Tianchi news recommendation: 4 Characteristic Engineering
中电资讯-信贷业务数字化转型如何从星空到指尖?
Day05 table
Meta metauniverse female safety problems occur frequently, how to solve the relevant problems in the metauniverse?
Day05 branch and loop (II)
Technical practice online fault analysis and solutions (Part 1)
All in one 1412: binary classification
C import Xls data method summary II (save the uploaded file to the DataTable instance object)
C import Xls data method summary V (complete code)
Three layer switching ②
Sequence sorting of basic exercises of test questions
Luogu p1309 Swiss wheel
Notice on Soliciting Opinions on the draft of information security technology mobile Internet application (APP) life cycle security management guide
MySQL deadly serial question 2 -- are you familiar with MySQL index?