This piece of code:
<template v-if="isTag(field, '')">
{{ getItemValue(item, field)
? getItemValue(item, field)
: '–'; }}
</template>
Is producing this error:
invalid expression: missing ) after argument list in
"\\n "+_s(getItemValue(item, field) ? getItemValue(item, field) : '–';)+"\\n "
Raw expression: {{ getItemValue(item, field) ? getItemValue(item, field) : '–'; }}
I've stared at that code for ours but I still can't understand what's wrong.
There's a semi-colon appearing before a closing brace ;)
. Making the assumption that this is a Vue template, semi-colons do not belong within Vue's template syntax.
_s(getItemValue(item, field) ? getItemValue(item, field) : '–';)
^^ Here
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.