postMessage( message , targetOrigin);message:表示需要传递的参数,可以使字符串也可以是JSON对象转换后的字符内容;targetOrigin:表示发送数据的URL来源,设为*表示不限制发送来源;