我已经开始考虑在我的网站中使用 elFinder,做一个测试页面我遵循了这个链接中所做的事情,并且我的页面如下所示elFinder
我的代码
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>elFinder 2.0</title>
<!-- jQuery and jQuery UI (REQUIRED) -->
<link rel="stylesheet" type="text/css" href="jquery/ui-themes/smoothness-1.8.23/jquery-ui-1.8.23.custom.css">
<script src="jquery/jquery-1.9.1.min.js"></script>
<script src="jquery/jquery-ui-1.8.23.custom.min.js"></script>
<!-- elFinder CSS (REQUIRED) -->
<link rel="stylesheet" type="text/css" href="css/elfinder.min.css">
<link rel="stylesheet" type="text/css" href="css/theme.css">
<!-- elFinder JS (REQUIRED) -->
<script src="js/elfinder.min.js"></script>
<!-- elFinder initialization (REQUIRED) -->
<script type="text/javascript" charset="utf-8">
// Documentation for client options:
// https://github.com/Studio-42/wiki/Client-configuration-options
$(document).ready(function() {
$('#elfinder').elfinder({
url : 'php/connector.minimal.php' // connector URL (REQUIRED)
// , lang: 'ru' // language (OPTIONAL)
});
});
</script>
</head>
<body>
<!-- Element where elFinder will be created (REQUIRED) -->
<div id="elfinder"></div>
</body>
</html>
我已经更改了文件的存储位置,php/connector.minimal.php
但是当我运行该页面时,它不会返回存储在css/images
文件夹中的图像。
console.log
在 Chrome 中
查看它显示了这个问题Uncaught TypeError: Cannot read property 'msie' of undefined
TypeError {stack: (...), message: "Cannot read property 'safari' of undefined"}
我怎样才能解决这个问题,因为我发现的所有示例都使用相同的 jquery 代码并且都可以工作,但我的没有。
显示问题的图像