当前位置:网站首页>Why is the operation unsuccessful (unresolved) uncaught syntaxerror: invalid or unexpected token (resolved)
Why is the operation unsuccessful (unresolved) uncaught syntaxerror: invalid or unexpected token (resolved)
2022-07-04 01:37:00 【hamimelon2020】
<template>
<div>
<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>
</div>
</template>
<script>
export default {
name: 'item',
props: {
firstName: String,
lastName: String
},
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',
};
},
};
}
</script>
Missing a double quote
<!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)"> </br> <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>
边栏推荐
- Huawei BFD and NQA
- Special copy UML notes
- MySQL uses the view to report an error, explain/show can not be issued; lacking privileges for underlying table
- How to set the response description information when the response parameter in swagger is Boolean or integer
- A little understanding of GSLB (global server load balance) technology
- Mobile asynchronous sending SMS verification code solution -efficiency+redis
- Conditional test, if, case conditional test statements of shell script
- Force buckle day32
- Install the pit that the electron has stepped on
- Maximum entropy model
猜你喜欢

C import Xls data method summary II (save the uploaded file to the DataTable instance object)

Gee: create a new feature and set corresponding attributes

Conditional test, if, case conditional test statements of shell script

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

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

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

Huawei BFD and NQA

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

Since the "epidemic", we have adhered to the "no closing" of data middle office services

How to set the response description information when the response parameter in swagger is Boolean or integer
随机推荐
PMP 考试常见工具与技术点总结
All ceramic crowns - current market situation and future development trend
Unity Shader入门精要读书笔记 第三章 Unity Shader基础
51 MCU external interrupt
mysql使用視圖報錯,EXPLAIN/SHOW can not be issued; lacking privileges for underlying table
Notice on Soliciting Opinions on the draft of information security technology mobile Internet application (APP) life cycle security management guide
Future源码一观-JUC系列
Three layer switching ①
Introduction to Tianchi news recommendation: 4 Characteristic Engineering
Function: find the approximate value of the limit of the ratio of the former term to the latter term of Fibonacci sequence. For example, when the error is 0.0001, the function value is 0.618056.
A malware detection method for checking PLC system using satisfiability modulus theoretical model
Huawei BFD and NQA
Lightweight Pyramid Networks for Image Deraining
Characteristics of ginger
Pesticide synergist - current market situation and future development trend
Typescript basic knowledge sorting
[turn] solve the problem of "RSA public key not find" appearing in Navicat premium 15 registration
Prose article appreciation - the rain in the warm country has never changed into cold, hard and brilliant flowers. Knowledgeable people think he is monotonous, and he thinks he is unlucky, doesn't he?
Magical usage of edge browser (highly recommended by program ape and student party)
Openbionics exoskeleton project introduction | bciduino community finishing