try{document.domain="jincin.com"}catch(error){}
需要在被调用的函数和调用函数出都要加入上面相同的语句
js 跨域的使用
原文:http://www.cnblogs.com/qiyongliang/p/3512667.html