angular.js - 同时有angular和jquery插件处理keydown事件
漂亮男人
漂亮男人 2017-05-15 17:08:07
0
2
515

网上下了个jq插件,输入框绑定了click事件,但是我自己写的angular脚本也在同一个输入框上用了ng-keydown。。。我以为是angular的keydown处理函数会执行,结果没效果。。。但是我又不能把插件的click事件处理函数给去掉,因为要用到它的功能。。。不知道怎么处理这种情况

漂亮男人
漂亮男人

reply all (2)
给我你的怀抱

   

The keyup event I just wrote today, keydown is similar

    仅有的幸福

    You can’t write it like this,
    The first choice is require: '?ngModel',
    Then get the value of the text box ngModel.$modelValue instead of input.value,
    There is also no need for elements [0], element represents
    jquery The thinking is too serious. . .

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!