原生截屏方法
Laya中的写在index.html中
主要针对的是Boo中webView的问题
<script>
function loadMain() {
var script = document.createElement("script");
script.addEventListener("load", function(event) {
console.log("Script finished loading and executing");
});
script.src = "LayaAir3D.max.js";
script.async = true;
script.loader = 'laya';
document.getElementsByTagName("script")[0].parentNode.appendChild(script);
}
window.addEventListener("load", function(event) {
// try
// {
// gl=canvas.getContext("experimental-webgl");
// }catch(e)
// {
// alert("WebGL not Supported");
// }
// setTimeout(function(){
loadMain();
// }, 100)
});
</script>
评论