超极本win8应用开发的问题

hyewzlsu 2014-10-14 02:36:17
开发win8应用时,在ie10用下面的代码判断浏览器报错啊
<script type="text/JavaScript">
If (explorer.userAgent.indexOf(“MSIE”)>0)
{
// Run custom code for Internet Explorer.
}
</script>求大侠帮吗啊
...全文
134 1 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
lehedele 2014-10-14
  • 打赏
  • 举报
回复
要这样才可以 <script type="text/JavaScript"> If (navigator.userAgent.indexOf(“MSIE”)>0) { // Run custom code for Internet Explorer. } </script>

567

社区成员

发帖
与我相关
我的任务
社区描述
英特尔® 边缘计算,聚焦于边缘计算、AI、IoT等领域,为开发者提供丰富的开发资源、创新技术、解决方案与行业活动。
社区管理员
  • 英特尔技术社区
  • shere_lin
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧