Joomla常用操作

 

加载Javascript代码:
$doc =& JFactory::getDocument();
$doc->addScript("http://www.example.com/js/myscript.js");


加载可见即所得编辑框
$editor=& JFactory::getEditor();
echo $editor->display( 'desc', '', '400', '400', '20', '20', false, $params);

你可能感兴趣的:(JavaScript)