SAP UI5 Input字段live change事件的一个例子
生活随笔
收集整理的這篇文章主要介紹了
SAP UI5 Input字段live change事件的一个例子
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
源代碼:
<!DOCTYPE html> <html> <head><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta charset="utf-8"><title>SAPUI5 Sandbox</title><scriptid="sap-ui-bootstrap"src="https://openui5.hana.ondemand.com/resources/sap-ui-core.js"data-sap-ui-theme="sap_belize"data-sap-ui-libs="sap.m"data-sap-ui-compatVersion="edge"data-sap-ui-preload="async"></script><script>sap.ui.getCore().attachInit(function () {var oInput = new sap.m.Input({liveChange : function(oEvent) {console.log('live change event: ' + oEvent.getParameter('newValue'));}});oInput.placeAt("content");});</script> </head> <body class="sapUiBody" role="application"><div id="content"></div> </body> </html>測試效果:
總結
以上是生活随笔為你收集整理的SAP UI5 Input字段live change事件的一个例子的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 华为p30pro耳机型号
- 下一篇: 明日之后谁送配方残页