<iframe src="new 2.html" id="iframe" class="iframe" name="iframe"></iframe><input type="button" onclick="change();"><script> function change() { var obj= document.getElementsByTagName('iframe'); obj.src='https://www.baidu.com'; } </script>
這個為什么不行,沒有反應,也沒報錯
An702343
2019-06-05 20:53:20