1、contentWindow
document.getElementById(“myiframe”).contentWindow,
得到iframe对象后,就可以通过contentWindow得到iframe包含页面的window对象,然后就可以正常访问页面元素了;
2、appendChild()
在列表中添加项目
3、document.createElement(‘button’)
创建元素
4、
$nextTick
在修改数据之后 立即使用他,然后等待 DOM更新。
this.$nextTick(function () {})