Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

form表单submit按钮无法提交,除非刷新一次 #76

Closed
5663015 opened this issue Jan 4, 2017 · 3 comments
Closed

form表单submit按钮无法提交,除非刷新一次 #76

5663015 opened this issue Jan 4, 2017 · 3 comments

Comments

@5663015
Copy link

5663015 commented Jan 4, 2017

image
当用户第一次到这个页面时,点击查询按钮没有任何反应,刷新后就可以提交了。这是怎么回事?
视图代码:

image
这段代码总是粘贴不过来,只能截图了,不好意思
控制器代码:

def list
    @q1=params[:name]
    if @q1.nil? == false 
      @course = Course.where("name like '%#{@q1}%' ")
    else
      @course=Course.all
    end

……

@PENGZhaoqing
Copy link
Owner

浏览器F12进入开发模式,查看console控制台有没有错误输出

@5663015
Copy link
Author

5663015 commented Jan 5, 2017

image
这样吗?没有任何输出

@PENGZhaoqing
Copy link
Owner

这个我也不清楚了,除非我能操作你的电脑。。换个浏览器试试

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants