0

I change

JHTML::script("dhtmlxgrid/dhtmlxcommon.js",'media/com_telecomax/js/'); 

to

JHTML::script("com_telecomax/dhtmlxgrid/dhtmlxcommon.js"); in \administrator\components\mycomponent\views\info\tmpl\default.php

but it don't connect script

4

1 回答 1

0

尝试使用以下方法:

$doc = JFactory::getDocument();
$doc->addScript(JURI::root() . "components/com_telecomax/dhtmlxgrid/dhtmlxcommon.js");

希望这可以帮助

于 2013-04-21T15:24:41.017 回答