我引用了一个文本编辑器的js,然后和原本laravel 的app.js冲突了。如果两个都有,前者就没有办法正常显示。
请问这种情况要如何化解?如何使两个都存在且不冲突?or在textarea特定的标签里使用指定的js?
求助啊!!!
<!-- Include external JS libs. -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.25.0/codemirror.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.25.0/mode/xml/xml.min.js"></script>
<!-- Include Editor JS files. -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/froala-editor/2.6.4/js/froala_editor.pkgd.min.js"></script>
<!-- Initialize the editor. -->
<script> $(function() { $('textarea').froalaEditor() }); </script>
<script src="{ asset('js/app.js') }"></script>
<script src="https://unpkg.com/vue"></script>