那是我夕阳下的奔跑——对象编程和模块编程
文章目录
传统的是这样
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
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论