IndexAction.class.php
-----------------------
$this -> assign("a","this is a");
$this -> display();
index.html
----------------
alert("{$a}") //弹出来的是 this is a
//如果这里引用外部的js
<load href="!-PUBLIC-!/Js/index.js" />
index.js
-------
alert("{$a}") //弹出来的就是 {$a} ,怎么解决为 this is a
先谢谢了!