傳統的是這樣ide
var current = null; var labels = { 'home': 'home', 'articles': 'articles', 'contact': 'contact' }; function init() { }; function show() { current = 1; }; function hide() { show(); };
<iframe width="100%" height="300" src="//jsfiddle.net/r297vohz/embedded/" allowfullscreen="allowfullscreen" frameborder="0"></iframe>
不支持iframe.net