【发布时间】:2017-09-25 23:18:10
【问题描述】:
我的 index.html 中有类似的内容
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="jquery-3.2.1.min.js"></script>
<script src="jquery.js"></script>
<iframe id="main" src="https://forexample.com"></iframe>
jQuery.js 代码是:
$(document).ready(function(){
$('#main').load(function(){
$('submit').click();
});
});
我想在加载窗口页面时自动点击提交按钮。
你能帮我或给我一些建议吗?
最好的问候
汤姆
【问题讨论】:
-
为什么你有两个 jQuery 文件?还有你面临什么问题? iframe 里面有什么?也放那个内容
-
在 iframe 中我有另一个网站,梭子鱼。 jquery文件只有1个,另外2个是jquery的主文件。
-
问题是,为什么我不能点击按钮:P
标签: javascript jquery html node.js