33 lines
473 B
HTML
33 lines
473 B
HTML
<!DOCTYPE html>
|
||
<html>
|
||
<head>
|
||
<title>Test!</title>
|
||
<meta charset="utf-8"/>
|
||
<script src="hgwebsdk.js"></script>
|
||
</head>
|
||
<body>
|
||
<p>
|
||
<h1>Test!</h1>
|
||
<input id="scan" type="button" value="扫描" onclick="scan()" />
|
||
</p>
|
||
<script>
|
||
|
||
function scan()
|
||
{
|
||
hgwebsdk.scan('192.168.10.19', 8001, '/upload.php');
|
||
}
|
||
|
||
window.onload = function()
|
||
{
|
||
|
||
}
|
||
|
||
window.onbeforeunload = function()
|
||
{
|
||
|
||
}
|
||
|
||
</script>
|
||
</body>
|
||
</html>
|