Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我如何发送到变量中的 javascript 文件?
我不想这样用
@section("js") <script> ... </script> @endsection
我想要这样
@section("js") <script src="home.js"></script> @endsection
Javascript 文件:
var id = {{ $variable }}