6我只有做好代碼,你們幫我測式
花了18分鐘做的JavaScript:try { (() => { var e = __$$hmAppManager$$__.currentApp; var t = e.current, { px: o } = (new DeviceRuntimeCore.WidgetFactory( new DeviceRuntimeCore.HmDomApi(e, t) ), e.app.__globals__); try { (() => { var e = __$$hmAppManager$$__.currentApp, t = e.current; new DeviceRuntimeCore.WidgetFactory( new DeviceRuntimeCore.HmDomApi(e, t), "drink" ); DeviceRuntimeCore.HmLogger.getLogger("sanjiao"); t.module = DeviceRuntimeCore.Page({ init_view() { /* 小米手环7并未适配小程序, 因此所有小程序均以480*480大小渲染, 而小米手环7分辨率192*490, 下方10px像素无法利用, 有超出h480的组件就能上下滑动 */ hmUI.setLayerScrolling(false); //禁用页面上下滑动 var cc=0 var aa=0 const Text = hmUI.createWidget(hmUI.widget.TEXT, { //HelloWorld文本 x: 0, y: 0, w: 192, h: 200, color: 0xffffff, text_size: 30, align_h: hmUI.align.CENTER_H, align_v: hmUI.align.CENTER_V, text_style: hmUI.text_style.WRAP, text: "暖暖包🔥" }) const aText = hmUI.createWidget(hmUI.widget.TEXT, { //HelloWorld文本 x: 0, y: 200, w: 192, h: 280, color: 0xffffff, text_size: 30, align_h: hmUI.align.CENTER_H, align_v: hmUI.align.CENTER_V, text_style: hmUI.text_style.WRAP, text: cc+"次執行\n已經過"+aa+"s" }) const a=setInterval(() => { cc++ }, 10) const d=setInterval(() => { aa++ aText.setProperty(prop.MORE, { text: cc+"次執行\n已經過"+aa+"s" }) }, 1000) }, onInit() { console.log("index page.js on init invoke"), this.init_view(); }, onReady() { console.log("index page.js on ready invoke"); }, onShow() { console.log("index page.js on show invoke"); }, onHide() { console.log("index page.js on hide invoke"); }, onDestory() { console.log("index page.js on destory invoke"); } }); })(); } catch (e) { console.log(e); } })(); } catch (e) { console.log(e); }
謝謝我只有做好代碼,你們幫我測式
花了18分鐘做的JavaScript:try { (() => { var e = __$$hmAppManager$$__.currentApp; var t = e.current, { px: o } = (new DeviceRuntimeCore.WidgetFactory( new DeviceRuntimeCore.HmDomApi(e, t) ), e.app.__globals__); try { (() => { var e = __$$hmAppManager$$__.currentApp, t = e.current; new DeviceRuntimeCore.WidgetFactory( new DeviceRuntimeCore.HmDomApi(e, t), "drink" ); DeviceRuntimeCore.HmLogger.getLogger("sanjiao"); t.module = DeviceRuntimeCore.Page({ init_view() { /* 小米手環7未適配小程序, 因此所有小程式均以480*480大小渲染, 而小米手環7解析度192*490, 下方10px像素無法利用, 有超出h480的組件就能上下滑動*/ hmUI.setLayerScrolling(false); //禁用頁面上下滑動 var cc=0 var aa=0 const Text = hmUI.createWidget(hmUI.widget.TEXT, { //HelloWorld文本 x: 0, y: 0, w: 192, h: 200, color: 0xffffff, text_size: 30, align_h: hmUI.align.CENTER_H, align_v: hmUI.align.CENTER_V, text_style: hmUI.text_style.WRAP, text: "暖暖包🔥" }) const aText = hmUI.createWidget(hmUI.widget.TEXT, { //HelloWorld文本 x: 0, y: 200, w: 192, h: 280, color: 0xffffff, text_size: 30, align_h: hmUI.align.CENTER_H, align_v: hmUI.align.CENTER_V, text_style: hmUI.text_style.WRAP, text: cc+"次執行\n已經過"+aa+"s" }) const a=setInterval(() => { cc++ }, 10) const d=setInterval(() => { aa++ aText.setProperty(prop.MORE, { text: cc+"次執行\n已經過"+aa+"s" }) }, 1000) }, onInit() { console.log("index page.js on init invoke"), this.init_view(); }, onReady() { console.log("index page.js on ready invoke"); }, onShow() { console.log("index page.js on show invoke"); }, onHide() { console.log("index page.js on hide invoke"); }, onDestory() { console.log("index page.js on destory invoke"); } }); })(); } catch (e) { console.log(e); } })(); } catch (e) { console.log(e); }
谢谢我只有做好代碼,你們幫我測式
花了18分鐘做的JavaScript:try { (() => { var e = __$$hmAppManager$$__.currentApp; var t = e.current, { px: o } = (new DeviceRuntimeCore.WidgetFactory( new DeviceRuntimeCore.HmDomApi(e, t) ), e.app.__globals__); try { (() => { var e = __$$hmAppManager$$__.currentApp, t = e.current; new DeviceRuntimeCore.WidgetFactory( new DeviceRuntimeCore.HmDomApi(e, t), "drink" ); DeviceRuntimeCore.HmLogger.getLogger("sanjiao"); t.module = DeviceRuntimeCore.Page({ init_view() { /* 小米手环7并未适配小程序, 因此所有小程序均以480*480大小渲染, 而小米手环7分辨率192*490, 下方10px像素无法利用, 有超出h480的组件就能上下滑动 */ hmUI.setLayerScrolling(false); //禁用页面上下滑动 var cc=0 var aa=0 const Text = hmUI.createWidget(hmUI.widget.TEXT, { //HelloWorld文本 x: 0, y: 0, w: 192, h: 200, color: 0xffffff, text_size: 30, align_h: hmUI.align.CENTER_H, align_v: hmUI.align.CENTER_V, text_style: hmUI.text_style.WRAP, text: "暖暖包🔥" }) const aText = hmUI.createWidget(hmUI.widget.TEXT, { //HelloWorld文本 x: 0, y: 200, w: 192, h: 280, color: 0xffffff, text_size: 30, align_h: hmUI.align.CENTER_H, align_v: hmUI.align.CENTER_V, text_style: hmUI.text_style.WRAP, text: cc+"次執行\n已經過"+aa+"s" }) const a=setInterval(() => { cc++ }, 10) const d=setInterval(() => { aa++ aText.setProperty(prop.MORE, { text: cc+"次執行\n已經過"+aa+"s" }) }, 1000) }, onInit() { console.log("index page.js on init invoke"), this.init_view(); }, onReady() { console.log("index page.js on ready invoke"); }, onShow() { console.log("index page.js on show invoke"); }, onHide() { console.log("index page.js on hide invoke"); }, onDestory() { console.log("index page.js on destory invoke"); } }); })(); } catch (e) { console.log(e); } })(); } catch (e) { console.log(e); }
我只有做好代碼,你們幫我測式
JavaScript:try { (() => { var e = [B]$$hmAppManager$$[/B].currentApp; var t = e.current, { px: o } = (new DeviceRuntimeCore.WidgetFactory( new DeviceRuntimeCore.HmDomApi(e, t) ), e.app.[B]globals[/B]); try { (() => { var e = [B]$$hmAppManager$$[/B].currentApp, t = e.current; new DeviceRuntimeCore.WidgetFactory( new DeviceRuntimeCore.HmDomApi(e, t), "drink" ); DeviceRuntimeCore.HmLogger.getLogger("sanjiao"); t.module = DeviceRuntimeCore.Page({ init_view() { /* 小米手环7并未适配小程序, 因此所有小程序均以480*480大小渲染, 而小米手环7分辨率192*490, 下方10px像素无法利用, 有超出h480的组件就能上下滑动 */ hmUI.setLayerScrolling(false); //禁用页面上下滑动 var cc=0 var aa=0 const Text = hmUI.createWidget(hmUI.widget.TEXT, { //HelloWorld文本 x: 0, y: 0, w: 192, h: 200, color: 0xffffff, text_size: 30, align_h: hmUI.align.CENTER_H, align_v: hmUI.align.CENTER_V, text_style: hmUI.text_style.WRAP, text: "暖暖包🔥" }) const aText = hmUI.createWidget(hmUI.widget.TEXT, { //HelloWorld文本 x: 0, y: 200, w: 192, h: 280, color: 0xffffff, text_size: 30, align_h: hmUI.align.CENTER_H, align_v: hmUI.align.CENTER_V, text_style: hmUI.text_style.WRAP, text: cc+"次執行\n已經過"+aa+"s" }) const a=setInterval(() => { cc++ }, 10) const d=setInterval(() => { aa++ aText.setProperty(prop.MORE, { text: cc+"次執行\n已經過"+aa+"s" }) }, 1000) }, onInit() { console.log("index page.js on init invoke"), this.init_view(); }, onReady() { console.log(“準備調用時的索引頁.js”); }, onShow() { console.log(“show invoke 上的索引頁.js”); }, onHide() { console.log(“隱藏調用時的索引頁.js”); }, onDestory() { console.log(“destory 調用時的索引頁.js”); } }); })(); } 捕獲 (e) { 控制台.log(e); } })(); } 捕獲 (e) { 控制台.log(e); }[/代碼] 花了[SIZE=26px][FONT=Times New Roman][SIZE=26px][COLOR=rgb(250, 197, 28)][B]18[/B][/COLOR][/SIZE][/FONT][/SIZE]分鐘做的 [/QUOTE] 666
*这是一则由 Google AdSense 自动推荐的广告,与本站无关,不对其真实性与可靠性负责