JavaScript this.checked [英] JavaScript this.checked

查看:74
本文介绍了JavaScript this.checked的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在JavaScript中,如果我们编写以下代码:

In JavaScript, if we write the following for example:

var c = this.checked;

什么是已选中?只是状态告诉我们是否选中了示例复选框或不是?那么,我们可以用它来检查复选框是否也没有被选中?

What is checked here? Is it just a state that tells us if a checkbox for example is checked or not? So, can we use it to check that the checkbox is also not checked?

推荐答案


是吗?只是一个告诉我们是否选中了复选框的状态?那么,我们可以用它来检查复选框是否也未被选中?

Is it just a state that tells us if a checkbox for example is checked or not? So, can we use it to check that the checkbox is also not checked?

是和是

这篇关于JavaScript this.checked的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆