• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 3 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0011 秒)

1. DOM元素-视频 [ 100%]

...Element("video"); Laya.Browser.document.body.appendChild(videoElement); // 设置Video元素地样式和属性 videoElement.style.zInddex = Laya.Render.canvas.style.zIndex + 1; videoElement.src = "../../res/av/mov_bbb.mp4"; videoElement.controls = true; // 阻止IOS视频全屏 videoElement.setAttri...

来源: Laya_示例 发布时间: 20240930

2. 输入设备-地图 [ 93%]

...iduCoord(data) { if (data.status == 0) { var position = data.points[0]; // 设置标注物位置 marker.setPosition(position); map.panTo(position); map.setZoom(17); } } function onError(e) { if (e.code == Geolocation.TIMEOUT) alert("获取位置超时"); else if (e.code == Geolocation.POSITION_UNAVA...

来源: Laya_示例 发布时间: 20240930

3. 鼠标交互-滑动 [ 77%]

...on.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.pivot(w / 2, h / 2); //设置宽高(要接收鼠标事件必须设置宽高,否则不会被命中) button.size(w, h); button.x = (Laya.stage.width - TrackLength) / 2; button.y = Laya.stage.height / 2; button.on(Event.MOUSE_DOWN, this, onMouse...

来源: Laya_示例 发布时间: 20240930