配置浏览器浏览本地的applet网页,解决不支持插件问题以及安全性问题
进入控制面板,打开Java,选择安全选项,在例外站点里面点击添加;
添加如下:http://localhost和file:///;再次打开本地网页就行了
AppletViewer是jdk工具,位于jdk安装路径/bin中,使用方法与java.exe一样.
appletviewer 命令可在脱离万维网浏览器环境的情况下运行 applet。
appletviewer x.html
<script type="text/javascript"> $(function () { $('pre.prettyprint code').each(function () { var lines = $(this).text().split('\n').length; var $numbering = $('<ul/>').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i <= lines; i++) { $numbering.append($('<li/>').text(i)); }; $numbering.fadeIn(1700); }); }); </script>