Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/386.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/oop/2.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
Javascript Summernote适用于本地,但不适用于生产_Javascript_Summernote - Fatal编程技术网

Javascript Summernote适用于本地,但不适用于生产

Javascript Summernote适用于本地,但不适用于生产,javascript,summernote,Javascript,Summernote,Summernote.js库在本地工作而不在生产环境中工作的可能原因是什么?我使用CDN,请检查我的代码: <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- The above 3

Summernote.js库在本地工作而不在生产环境中工作的可能原因是什么?我使用CDN,请检查我的代码:

<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="csrf-token" content="{{ csrf_token() }}" />
<title>{{ env('APP_NAME') }} | @yield('title')</title>

<!-- Favicon -->
<link rel="favicon icon" href="{{ asset('public/favicon.ico') }}">

<!-- Styles -->
<!-- include libraries(jQuery, bootstrap) -->
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.css" rel="stylesheet">

<!-- include summernote css/js-->
<link href="http://cdnjs.cloudflare.com/ajax/libs/summernote/0.8.1/summernote.css" rel="stylesheet">
<!-- End Styles -->

{{env('APP_NAME')}}}@yield('title'))

就在身体标签的正上方

<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.js"></script>
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/summernote/0.8.1/summernote.js"></script>
<script>
    $(document).ready(function() {
        $('#summernote').summernote({
            height: 300,
            dialogsInBody: true
        });
    });
</script>
<!-- End Scripts -->

$(文档).ready(函数(){
$('#summernote')。summernote({
身高:300,
对话:对
});
});

我已经设法解决了这个问题。 我正在为我的web应用程序使用SSL证书,因此我必须将URL从http更改为https


我希望这个答案能对其他开发者有所帮助

我已经设法解决了这个问题。 我正在为我的web应用程序使用SSL证书,因此我必须将URL从http更改为https


我希望这个答案能对其他开发者有所帮助

您还可以删除该协议,并将其保持为这样,以便在任何情况下都能正常工作

<script src="//cdnjs.cloudflare.com/ajax/libs/summernote/0.8.1/summernote.js"></script>

您还可以删除该协议,并将其保持为这样,以便在任何情况下都能正常工作

<script src="//cdnjs.cloudflare.com/ajax/libs/summernote/0.8.1/summernote.js"></script>