Javascript 如何通过单击纸张选项卡更改页面内容?
我有这样的纸质标签Javascript 如何通过单击纸张选项卡更改页面内容?,javascript,jquery,tabs,polymer,google-web-component,Javascript,Jquery,Tabs,Polymer,Google Web Component,我有这样的纸质标签 表1 表2 表3 表1的一些故事 表2的一些故事 表3的一些故事 通过绑定纸张选项卡选定的属性使用铁皮页选定的属性将显示基于选定选项卡的相应提示 <paper-dialog id="view"> <paper-tabs selected="{{currentPage}}"> <paper-tab on-tap="_changeList">TAB 1</paper-tab> <paper-t
表1
表2
表3
表1的一些故事
表2的一些故事
表3的一些故事
通过绑定纸张选项卡
选定的属性使用铁皮页
选定的属性将显示基于选定选项卡的相应提示
<paper-dialog id="view">
<paper-tabs selected="{{currentPage}}">
<paper-tab on-tap="_changeList">TAB 1</paper-tab>
<paper-tab on-tap="_changeList">TAB 2</paper-tab>
<paper-tab on-tap="_changeList">TAB 3</paper-tab>
</paper-tabs>
<iron-pages selected="{{currentPage}}">
<iron-list>some story for tab 1</iron-list>
<iron-list>some story for tab 2</iron-list>
<iron-list>some story for tab 3</iron-list>
</iron-pages>
</paper-dialog>
希望这有帮助:)
ready: function(){
this.currentPage = 0;
}