Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/86.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery $(…).bootstrapValidator不是Laravel中的函数错误_Jquery_Laravel_Validation_Twitter Bootstrap 3_Bootstrapvalidator - Fatal编程技术网

Jquery $(…).bootstrapValidator不是Laravel中的函数错误

Jquery $(…).bootstrapValidator不是Laravel中的函数错误,jquery,laravel,validation,twitter-bootstrap-3,bootstrapvalidator,Jquery,Laravel,Validation,Twitter Bootstrap 3,Bootstrapvalidator,我经常得到$(…)。bootstrapValidator不是一个函数。 在我的app.blade中,我包括: <script type="text/javascript" src="{{ asset('js/jquery-3.2.1.js')}}"></script> <script type="text/javascript" src="{{ asset('js/jquery-ui.js')}}"></script> <s

我经常得到
$(…)。bootstrapValidator
不是一个函数。 在我的
app.blade
中,我包括:

 <script type="text/javascript" src="{{ asset('js/jquery-3.2.1.js')}}"></script>
    <script type="text/javascript" src="{{ asset('js/jquery-ui.js')}}"></script>
    <script type="text/javascript" src="{{ asset('js/bootstrap.js')}}"></script>
    <script type="text/javascript" src="{{ asset('js/bootstrap.min.js')}}"></script>
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-validator/0.5.3/js/bootstrapValidator.js"></script>

在我的
register.blade
中,我有一个用于引导验证程序的脚本

该函数在普通php代码中是有效的,当我试图在Laravel项目中实现它时,我刚刚遇到了这个错误。有什么建议吗


非常感谢

修复了它。与另一个jQuery脚本缠绕在一起

您的代码顺序可能有问题,您可能在包含库之前调用引导验证程序函数。@PandhiBhaumik库包含在app.blade的部分中,引导验证f-n在register.blade视图的末尾调用。这就是为什么会让人困惑的原因。您是否通过浏览器中的“查看源”进行了检查?如果您在页脚中加载JS,这很好。@PandhiBhaumik是的,我通过查看源代码检查了它,库是先加载的。您能显示javascript代码吗?