Section(title: Results) |
Section(title: "Results"):参数中的文本需要加引号,裸单词则为名称 |
修复 (KS6009) |
Button(on_click: "count += 1") |
Button(on_click: $count += 1),或 on_click: { $count += 1 }:双引号始终表示文本 |
|
'Hello $name' |
"Hello { $name }":双引号会计算花括号内的表达式。单引号则按原样保留文本 |
|
$route = "/users/{id}", "\d{3}", "a { color: red }" |
'/users/{id}'、'\d{3}'、'a { color: red }',或重复的花括号 ("/users/{{id}}"):双引号中的 { } 始终包含表达式,无论它以何开头,因此 "{ User->count() } users" 与 "{ 1 + 2 }" 会被填充 |
|
total = 3, total += 1, const tax = 0.2 |
$total = 3、$total += 1、const $tax = 0.2:变量在被赋值的地方也会有其 $ |
修复 (KS6010) |
fn($n) => $n * 2 |
fn(n) => $n * 2 |
修复 (KS6010) |
numbered: no, new_page: yes |
numbered: false、new_page: true(或单独的标志:new_page) |
修复 (KS6011) |
spawn(fn: job), tools: lookup |
spawn(fn: @job)、tools: [@lookup]:函数的命名方式为 @name |
fix (KS6012) |
files: "settings, .env" |
files: ['settings', '.env']:列表即数组 |
修复 (KS6006) |
timeout: 30, ttl: '10m' |
timeout: 30s、ttl: 10m:时间长度需带单位,且不加引号 |
修复 (KS6018) |