- 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>
推薦閱讀
- ASP.NET Web API:Build RESTful web applications and services on the .NET framework
- 摩登創客:與智能手機和平板電腦共舞
- Visual FoxPro程序設計教程
- 算法基礎:打開程序設計之門
- FreeSWITCH 1.6 Cookbook
- Learning SQLite for iOS
- Java:Data Science Made Easy
- Nginx Essentials
- 數據結構案例教程(C/C++版)
- Android驅動開發權威指南
- Building Wireless Sensor Networks Using Arduino
- ActionScript 3.0從入門到精通(視頻實戰版)
- Mapping with ArcGIS Pro
- Go Systems Programming
- Python深度學習與項目實戰