html: <input class="query_str_input" placeholder="搜索您的需求" type="text" name="search_name" style="width: 5.55rem; height: 0.65rem;margin-left: 0.15rem;letter-spacing: 0.02rem;background-color:#e5e5e5; border: 0.01rem solid #e5e5e5;font-size: 0.3rem;font-family: '微软雅黑' "> js: //搜索查询 $(".query_str_input").bind("input propertychange change",function(event){ var query_str=$(".query_str_input").val(); console.log( "query_Str:"+query_str); })