KScript 文档
ZH

错误代码

KS2004

裸词会被当作值使用。变量用 $ 读取,文本需要加引号。

<let name="name" value="Kyle" /> <!-- wrong -->
<set name="name" value="'Kyle'" /> <!-- right: text -->
<set name="name" value="$other" /> <!-- right: another variable -->
$name = Kyle          // wrong
$name = 'Kyle'        // right: text
$name = $other        // right: another variable

Edit this page on GitHub