需求:想通过给iframe 的src 属性赋值不同的URL ,显示不同页面!

解决方法:

图片动态显示一样的!自定义属性bind-attr-src 然后定义KO对象 指定一个网址!!
修改的时候只需要KO对象重新赋值即可

var Model = function(){
	this.callParent();
	this.test = justep.Bind.observable('https://www.baidu.com/');
};

修改

this.test.set('http://bbs.wex5.com/forum.php');

bind-attr-src 绑定test即可