//在名为'indexWin'的window中找到名为'indexFrame'的frame,
//并在该frame中执行changeCity脚本
var jsfun = 'funcGoto();';
api.execScript({
name: 'indexWin',
frameName: 'indexFrame',
script: 'changeCity("'+ data +'","'+ list +'");'
});
//indexFrame.html
<script>
function changeCity(data,list){
console.log(data+list);
}
</script>