You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.3 KiB
45 lines
1.3 KiB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
|
|
|
<head>
|
|
<title>郑郑郑</title>
|
|
<meta http-equiv="content-type" content="text/html; charset=utf8" />
|
|
<script type="text/javascript" src="../Common/jquery.js"></script>
|
|
</head>
|
|
|
|
<body>
|
|
<div id="resultContainer"></div>
|
|
<script>
|
|
$.ajax({
|
|
url: 'http://192.168.1.75:33336/video/index.html',
|
|
type: 'GET',
|
|
dataType: 'html',
|
|
async: false, // 设置为同步请求
|
|
success: function (data) {
|
|
// 将被调用页面的内容添加到 resultContainer 中
|
|
$('#resultContainer').html(data);
|
|
|
|
// 等待 gpy_result_base64 加载完成后获取其内容
|
|
waitForElementToDisplay('#gpy_result_base64', function () {
|
|
var value = $('#gpy_result_base64').text().trim(); // 获取 gpy_result_base64 的值
|
|
console.log('gpy_result_base64 元素的值:', value);
|
|
});
|
|
},
|
|
error: function (xhr, status, error) {
|
|
console.error('Error:', error);
|
|
}
|
|
});
|
|
|
|
// 等待元素加载完成后执行回调函数
|
|
function waitForElementToDisplay(selector, callback) {
|
|
var interval = setInterval(function () {
|
|
if ($(selector).length) {
|
|
clearInterval(interval);
|
|
callback();
|
|
}
|
|
}, 100); // 每 100 毫秒检查一次
|
|
}
|
|
</script>
|
|
</body>
|
|
|
|
</html>
|