$hello中的 js 代码不会执行,会原样输出 Html ::encode( $hello); $hello中的 js 代码不会执行,不会输出 \ yii\helpers \HtmlPurifier:: process($hello ); 来自于datou:https://github.com/datou-leo/ci