We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
数据即时编辑
$(this).attr('checked')
checked
undefined
考虑到可能在 windows 下的浏览器不会出现这个问题。使用一种更通用的写法:$(this).is(':checked')
$(this).is(':checked')
修改前:
this.$form.find('input[type=checkbox]').each(function(){ if(!$(this).attr('checked')){ off_check_box[$(this).attr('name')] = '' } })
修改后:
this.$form.find('input[type=checkbox]').each(function(){ if(!$(this).is(':checked')){ off_check_box[$(this).attr('name')] = '' } })
The text was updated successfully, but these errors were encountered:
你好,多谢你指出这个问题。能否帮忙提交pull request,这样xadmin的代码中就有你的一份了。
Sorry, something went wrong.
bbf58b8
Merge pull request #85 from fxiao/master
165be64
[fixes #84] Checkbox is not real-time editing
No branches or pull requests
环境
重现操作流程
数据即时编辑
debug
$(this).attr('checked')
的值是checked
或undefined
解决
考虑到可能在 windows 下的浏览器不会出现这个问题。使用一种更通用的写法:
$(this).is(':checked')
修改前:
修改后:
The text was updated successfully, but these errors were encountered: