I am new to Laravel framework. I want to use jQuery in web application built using Laravel framework.
但我不知道如何链接到Laravel项目中的jQuery library.
I am new to Laravel framework. I want to use jQuery in web application built using Laravel framework.
但我不知道如何链接到Laravel项目中的jQuery library.
你可以使用在线图书馆
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
或者下载库并在css文件夹中添加css,在js文件夹中添加jQuery.这两个文件夹都保存在laravel public文件夹中,然后您可以如下所示进行链接
<link rel="stylesheet" href="{{asset('css/bootstrap-theme.min.css')}}">
<script src="{{asset('js/jquery.min.js')}}"></script>
or else
{{ HTML::style('css/style.css') }}
{{ HTML::script('js/functions.js') }}