有人可以解释一下为什么这段代码在IE中不起作用吗?在Chrome中一切正常。
我的HTML的一部分:
<head>
<script type='text/javascript' src="//code.jquery.com/jquery-1.9.1.js"></script>
<script type='text/javascript' src="http://vivin.net/pub/pdfjs/pdf.js"></script>
<script type='text/javascript' src="http://vivin.net/pub/pdfjs/textlayerbuilder.js"</script>
</head>
<body>
<div id="pdfContainer" class = "pdf-content"></div>
</body>
完整的代码和在Chrome上可运行的示例:http://jsfiddle.net/vivin/RjqUf/