thinkphp5 —— 引入public目录下的css/js路径问题

总目录:

thinkphp5 —— 引入public目录下的css/js路径问题_第1张图片

index.html


<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>LECHENG 管理后台title>
    <link rel="stylesheet" href="../../public/index/css/index.css"/>
    <script src="../../public/index/js/index.js">script>
head>
<body>
    <div id="header">666div>
    <div id="left">div>
    <div id="right">
        <div id="content">div>
        <div id="footer">div>
    div>
body>
html>

index.php


namespace app\index\controller;

class Index
{
    public function index()
    {
        return view('index'); //直接使用view助手函数渲染模板输出页面
    }
}

你可能感兴趣的:(微信小程序,php)