```
{{item.name}}
export default {
name: 'hello',
data () {
return {
iframeState:false,
goBackState:false,
webAddress: [
{
name:'segmentFault',
link:'https://segmentfault.com/a/1190000004502619'
},
{
name:'博客',
link:'http://vuex.vuejs.org/'
},
{
name:'特效',
link:'http://www.yyyweb.com/377.html'
}
]
}
},
mounted(){
const oIframe = document.getElementById('show-iframe');
const deviceWidth = document.documentElement.clientWidth;
const deviceHeight = document.documentElement.clientHeight;
oIframe.style.width = deviceWidth + 'px';
oIframe.style.height = deviceHeight + 'px';
},
methods:{
goBack(){
this.goBackState = false;
this.iframeState = false;
},
showIframe(){
this.goBackState = true;
this.iframeState = true;
}
}
}
```