| 
 | 
 
 
 楼主 |
发表于 2011-7-24 17:32:49
|
显示全部楼层
 
 
 
jeongee 发表于 2011-7-24 16:15   
js肯定加载了哇,我也不知道是什么问题,我也很惆怅  
貌似是路径的问题。 
原来的这样子的 
<base href="http://localhost/cid/admincp/default/" /> 
<script src="js/xheditor/xheditor-zh-cn.min.js"></script> 
不被识别,不显示编辑器。 
这样的<script src="http://localhost/cid/admincp/default/js/xheditor/xheditor-zh-cn.min.js"></script> 
绝对路径就能识别显示显示编辑器。 
 
这里就有个问题,CI里面的引用路径到底应该怎么写?相对路径的话是相对根目录下的index.php的路径吗? |   
 
 
 
 |