我以前做过这个,但它是在Codeigniter中,当我在Laravel再次做它不起作用?我错过了任何链接(如cdn等?)?如果它是什么?
这是我的标题
<!DOCTYPE html>
<html>
<head>
<title>Laravel 5.3 File Upload with Validation example</title>
<script type="text/javascript" src="//code.jquery.com/jquery-1.12.4.js"></script>
<script type="text/javascript" src="/js/jquery.min.js"></script>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css">
<link rel="stylesheet" href="css/dataTables.bootstrap.min.css">
<!-- <link href="https://cdn.datatables.net/buttons/1.2.3/css/buttons.dataTables.min.css" rel="stylesheet"> -->
<link href="css/buttons.bootstrap.min.css" rel="stylesheet">
<link href="css/buttons.dataTables.min.css" rel="stylesheet">
<link href="https://cdn.datatables.net/1.10.13/css/jquery.dataTables.min.css" rel="stylesheet">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" ></script>
<!-- Styles -->
<script type="text/javascript" src="js/dataTable.js"></script>
</head>
<body>
//Some codes
</body>
<script type="text/javascript" src="js/custom.js"></script>
<!-- Datatables -->
<script type="text/javascript" src="js/buttons.colVis.min.js"></script>
<script src="js/jquery.dataTables.min.js"></script>
<script src="js/dataTables.bootstrap.min.js"></script>
<script type="text/javascript" src ="js/dataTables.buttons.min.js"></script>
<script type="text/javascript" src="js/buttons.bootstrap.min.js"></script>
<script type="text/javascript" src ="js/buttons.flash.min.js"></script>
<script type="text/javascript" src ="js/buttons.html5.min.js"></script>
<script type="text/javascript" src ="js/buttons.print.min.js"></script>
<script type="text/javascript" src ="js/jszip.min.js"></script>
<script type="text/javascript" src ="js/pdfmake.min.js"></script>
<script type="text/javascript" src ="js/vfs_fonts.js"></script>
</html>
答案 0 :(得分:0)
抱歉,目前尚不清楚您要从上面的代码示例中尝试做什么。您刚刚导入了资产(.css / .js文件)。似乎没有用于导入和导出CSV / PDF文件的代码。