Closed 5663015 closed 6 years ago
当用户第一次到这个页面时,点击查询按钮没有任何反应,刷新后就可以提交了。这是怎么回事? 视图代码:
这段代码总是粘贴不过来,只能截图了,不好意思 控制器代码:
def list @q1=params[:name] if @q1.nil? == false @course = Course.where("name like '%#{@q1}%' ") else @course=Course.all end
……
浏览器F12进入开发模式,查看console控制台有没有错误输出
这样吗?没有任何输出
这个我也不清楚了,除非我能操作你的电脑。。换个浏览器试试
当用户第一次到这个页面时,点击查询按钮没有任何反应,刷新后就可以提交了。这是怎么回事? 视图代码:
这段代码总是粘贴不过来,只能截图了,不好意思 控制器代码:
……