如何在调查JS Angular中的每个输入按键上触发onValueChanged

问题描述

当前onValueChanged触发on(onblur),我想在每个按键上触发以调用API。 HTML

 <div class="container">
        <div class="survey-container contentcontainer codecontainer">
          <div id="surveyElement"></div>
        </div>
      </div>


const surveyModel = new Survey.Model(this.formConfig)
    
surveyModel.onValueChanged.add((result,options) => {
         console.log('kkkkk: ',options)
     })

JSON模式

{ 'name':'mocknumber', 'type':'text', 'title':'MockNumber', 'isRequired':是的, 'placeHolder':'类型模拟号码', 'requiredErrorText':'此字段为必填项' }

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)