- Full-Stack Vue.js 2 and Laravel 5
- Anthony Gore
- 74字
- 2021-07-02 19:57:19
Expressions
If a directive requires a value, it will be anexpression.
In the JavaScript language, expressions are small, evaluable statements that produce a single value. Expressions can be used wherever a value is expected, for example in the parenthesis of anifstatement:
if (expression) { ... }
The expression here could be any of the following:
- A mathematical expression, for examplex + 7
- A comparison, for examplev <= 7
- A Vuedataproperty, for examplethis.myval
Directives and text interpolations both accept expression values:
<p v-dir="someExpression">{{ firstName + " " + lastName }}</p>
推薦閱讀
- Facebook Application Development with Graph API Cookbook
- Manga Studio Ex 5 Cookbook
- Java高手真經(jīng)(高級(jí)編程卷):Java Web高級(jí)開(kāi)發(fā)技術(shù)
- Java技術(shù)手冊(cè)(原書(shū)第7版)
- R語(yǔ)言編程指南
- 單片機(jī)應(yīng)用與調(diào)試項(xiàng)目教程(C語(yǔ)言版)
- Visual Basic程序設(shè)計(jì)
- PHP+MySQL+Dreamweaver動(dòng)態(tài)網(wǎng)站開(kāi)發(fā)從入門(mén)到精通(第3版)
- Hands-On GUI Programming with C++ and Qt5
- 汽車(chē)人機(jī)交互界面整合設(shè)計(jì)
- 從Power BI到Analysis Services:企業(yè)級(jí)數(shù)據(jù)分析實(shí)戰(zhàn)
- Python第三方庫(kù)開(kāi)發(fā)應(yīng)用實(shí)戰(zhàn)
- Android應(yīng)用程序設(shè)計(jì)
- HTML5程序開(kāi)發(fā)范例寶典
- Windows 10 for Enterprise Administrators