我正在研究一个项目,我们有两个楼层,每个楼层都有不同的局域网,如下图所示
<!DOCTYPE HTML>
<html>
<head>
<title>
Iframe test
</title>
</head>
<meta charset='utf-8'>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
<style>
.name{
font-family: monospace;
}
</style>
<script type="text/javascript">
var iframe = $("C:Users/ajay.venkatesh/Desktop/IframeTEst1.html").contents();
console.log("Iframe working");
iframe.find('onloadFunction()').click(function(event){
console.log('work fine');
});
</script>
<body>
<iframe src="C:\Users\ajay.venkatesh\Desktop\IframeTEst1.html"></iframe>
<h1 class="name"> Ajay Venkatesh</h1>
<button onclick="onloadFunction()"> LOAD</button>
</body>
</html>
以下是我要在开始工作之前清除的问题