大约有 31 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0036 秒)
...click的监听事件。this.btn_CloseWebiFrame = laya.utils.Browser.window.document.createElement('button'); this.btn_CloseWebiFrame.onclick = () => { console.log("onclick"); }; oncontextmenu也没有问题。this.img_closeWebiFrame.oncontextmenu = () => { console.log("aaa4"); this.img_close...
来源: Laya_社区 发布时间: 20180126
...) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObjectURL(img.src); // 清除释放; }; img.src = window.URL.createObjectURL(blob); document.body.appendChild(img); } } xhr.send(); 上面这个方...
来源: Laya3.0_文档 发布时间: 20230303
...) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObjectURL(img.src); // 清除释放; }; img.src = window.URL.createObjectURL(blob); document.body.appendChild(img); } } xhr.send(); ``` 上面这个...
来源: Laya2.0_文档 发布时间: 20210715
...) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObjectURL(img.src); // 清除释放; }; img.src = window.URL.createObjectURL(blob); document.body.appendChild(img); } } xhr.send(); ``` 上面这个...
来源: Laya2.0_文档 发布时间: 20210714
...) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObjectURL(img.src); // 清除释放; }; img.src = window.URL.createObjectURL(blob); document.body.appendChild(img); } } xhr.send(); ``` 上面这...
来源: Laya2.0_文档 发布时间: 20210714
...便可以通过 file:///的方式直接进行访问了 var image = window.document.createElement("img"); image.onload=function() { } image.src="file:///" + conch.getCachePath()+"/test.jpg"; 截图之后还需要 取出来用,我们这个截图是没问题的, 你那个报错是怎么弄的 201...
来源: Laya_社区 发布时间: 20180224
...罢! let base64 = "你的base64字符串"; let image: HTMLImageElement = document.createElement("img"); let onImageLoaded: EventListenerOrEventListenerObject = () => { image.removeEventListener("load", onImageLoaded); let texture: Texture2D = new Texture2D(); texture.onAsynLoaded(null, image, )...
来源: Laya_社区 发布时间: 20180518
...ring = canvas.toDataURL("image/png"); var _webframe:*; _webframe = Browser.document.createElement("img"); _webframe.setAttribute('src', base64String); //_webframe.setAttribute('frameborder', 0); _webframe.setAttribute('width', "100%"); _webframe.setAttribute('height', "100%"); //_webframe.setAttribu...
来源: Laya_社区 发布时间: 20180103
...it(): void { this.mapDiv = Laya.Browser.createElement("div"); Laya.Browser.document.body.appendChild(this.mapDiv); // 适应窗口尺寸 this.refit(); Laya.stage.on(Laya.Event.RESIZE, this, this.refit); // 初始化地图 this.map = new this.BMap.Map(this.mapDiv); // 禁用部分交互 //this.map.di...
来源: Laya3.0_文档 发布时间: 20251010
...ter.window.wx.createCanvas().getContext('2d').__proto__; MiniAdpter.window.document.body.appendChild = function () { }; MiniAdpter.EnvConfig.pixelRatioInt = 0; Laya.Browser["_pixelRatio"] = MiniAdpter.pixelRatio(); MiniAdpter._preCreateElement = Laya.Browser.createElement; Laya.Browser[&qu...
来源: Laya_社区 发布时间: 20200103