laravel - How to parse variables in a tag when using vuejs?
过去多啦不再A梦
过去多啦不再A梦 2017-05-16 16:46:42
0
4
464

When using vuejs, how to parse variables in a tag?
For example, this one:

<a href="/articles/@{{ item.id }}/edit"></a>

What you see in the browser debugging window when you press F12 is like this, but it cannot be parsed:

<a href="/articles/{{ item.id }}/edit"></a>

How to write it?

过去多啦不再A梦
过去多啦不再A梦

reply all(4)
習慣沉默

/q/10...

You can take a look at my previous answers

给我你的怀抱

:href="JS expression"

Peter_Zhu

Why add @?

过去多啦不再A梦

href is an attribute, not content. You cannot use {{}} to bind data. You must use the form: href="expression"

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!