滚动时键盘不消失是系统行为,默认的,规格如此。如果一定要改,可以这样写:import { inputMethod } from '@kit.IMEKit'; Web({ src: $rawfile('detail.html'), controller: this.controller}) .onScroll(()=>{ let inputMethodController = inputMethod.getController(); inputMethodController.stopInputSession() })
滚动时键盘不消失是系统行为,默认的,规格如此。
如果一定要改,可以这样写: