1
如何检查我们是否可以在iphone上使用插件?我们可以使用模拟器进行检查并确保它可以在设备上运行吗?我的插件在Mac上成功运行。如何检查我们是否可以在iphone上运行插件?我们可以使用模拟器来检查吗?
现在这段代码可以在mac上的safari上运行,但不能在模拟器上的safari上运行。有人能告诉我为什么吗?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 5.0 Transitional//EN" "http://www.w3.org/TR/1999 /REC-html401-19991224/loose.dtd">
<html>
<head>
<title>Sample Speaking Plug-In</title>
<script LANGUAGE="JavaScript">
function print()
{
alert("running"+ document.getElementById('printid'));
//var plugin = document.embeds[0];
var plugin = document.getElementById('printid');
var data = plugin.myPrint();
alert(data);
(document.getElementById('t1')).value = data;
}
</script>
</head>
<body>
<!-- <embed name="print" width="200px" height="400px" type="application/x-printText" ></embed> -->
<object type="application/x-printText" name="print1" id="printid" width="200px" height="400px">
</object>
<input type = "text" value = "horse" id="t1"/>
<input type="button" value="print" onClick="print()"/>
</body>
</html>