那是我夕陽下的奔跑——對象編程和模塊編程

傳統的是這樣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

相關文章
相關標籤/搜索