+ add execute method.

This commit is contained in:
wangchunsheng
2011-03-07 09:02:58 +00:00
parent 3de026a83a
commit 6e843cfdd0

View File

@@ -751,6 +751,22 @@ EOT;
$js .= self::end();
echo $js;
}
/**
* Execute some js code.
*
* @param string $code
* @static
* @access public
* @return string
*/
static public function execute($code)
{
$js = self::start();
$js .= $code;
$js .= self::end();
echo $js;
}
}
/**