欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

jq input 实时监听chang事件

程序员文章站 2022-07-14 22:10:36
...
 $('.friend_content').bind('input propertychange', function(){
           if ($(".friend_content").val() != "") {
               console.log("input 值不为空")
           } else {
               console.log("input 值为空")
           }
       });