用js获取以下iframe中显示的内容,
<script type="text/javascript">
function asdf(){
    var aa = document.frames("mainAbc").document.getElementById("city").innerHTML;
alert(aa);
}
    </script><iframe name="mainAbc" id="mainAbc" src="http://m.weather.com.cn/m/pn2/weather.htm"
        width="180" height="20" marginwidth="0" marginheight="0" frameborder="0" scrolling="no">
</iframe><input type="button" value="得到天气" onclick="asdf()" />为什么src中为本地文件可以,连接到src="http://m.weather.com.cn/m/pn2/weather.htm"后就不行了,求大神们指点