【发布时间】:2015-09-23 22:04:25
【问题描述】:
所以我从这个site 尝试了其他http jsfiddle。
HTML
<div id="mainContent">
<h1>This is an According Example</h1>
</div>
<div id="accordion">
<h3><a href="#">Heading for first sentence</a></h3>
<div>
<p>This is the first sentence.</p>
</div>
<h3><a href="#">Heading for second sentence</a></h3>
<div>
<p>This is the second sentence.</p>
</div>
<h3><a href="#">Heading for third sentence</a></h3>
<div>
<p>This is the third sentence.</p>
</div>
</div>
JS
$(document).on('ready', function(){
$("#accordion").accordion();
});
jsfiddle 在 https 时不起作用。
Same as above
这与我在 PC(最新的 Chrome、Windows 10)中开发时遇到的情况完全相同,例如file:///C:/path/to/projectname/index.html(显示https版本)。我可以知道我该如何解决这个问题吗?
【问题讨论】: