gpt4 book ai didi

javascript - 路径不适用于可操作的 JS 和 CSS

转载 作者:太空宇宙 更新时间:2023-11-04 12:30:09 25 4
gpt4 key购买 nike

enter image description here

这可能真的很简单,但我很困惑,无法让路径在我的 codeigniter 元素中工作。我正在尝试安装最新的 handsontable (.12.2) 。按照说明 ( https://github.com/handsontable/handsontable/tree/master/dist ),我的页面头部有以下 html:

<html> 
<head>
<base href="<?=base_url();?>">


<!-- jQuery -->
<script type="text/javascript" charset="utf8" src="http://code.jquery.com/jquery-1.9.0.js"></script>

<script src="handsontable/dist/handsontable.full.js"></script>
<link rel="stylesheet" media="screen" href="handsontable/dist/handsontable.full.css">

文件结构在屏幕截图中。

当我尝试加载页面时,我在控制台中看到以下内容:

"NetworkError: 404 Not Found - http://localhost/b1/handsontable/dist/handsontable.full.css"
"NetworkError: 404 Not Found - http://localhost/b1/handsontable/dist/handsontable.full.js"
"NetworkError: 404 Not Found - http://localhost/b1/handsontable/dist/handsontable.full.css"

我做错了什么?

最佳答案

我猜在<base href="<?=base_url();?>">你应该做<base href="<?php echo base_url();?>"> .这应该有效。

关于javascript - 路径不适用于可操作的 JS 和 CSS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27722514/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com