BuTTON是啥?
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了BuTTON是啥?相关的知识,希望对你有一定的参考价值。
buttonbutton n. 按钮 1、对话框中的一种图形元素。当激活它时,能执行指定的功能。用户可以采用以下方法来激活按钮:用鼠标在其上单击,或者当按钮获得聚焦时按下“Return”或“Enter”键。【英】A graphic element in a dialog box that, when activated,performs a specified function. The user activates a button by clicking on it with a mouse or, if the button has thefocus, by pressing the Return or Enter key. 2、鼠标上的一个活动片,用于激活一些功能。旧式的鼠标模型只有一个按钮;新式一般有两个或更多个按钮。【英】On a mouse, amovable piece that is pressed to activate some function. Older mouse models have only one button; newer modelstypically have two or more. 参考技术A 按钮,按键 参考技术B 按钮~
关于jQuery,$(":button") 中的冒号是啥意思?
最近在学jQuery,不知道$(":button") 中的button前的冒号是什么意思?
我知道$("div.container")中的'.'号表示class, $("div #msg")中的'#'表示id, 那么$(":button") 中的':'表示什么呢?
我想问的是$(":button") 和 $("input:checked") 中的':'是什么含义? 什么时候要加':'冒号呢?
如: $("div.container")中的'.'号表示class, $("div #msg")中的'#'表示id。那么$(":button") 中的':'表示什么?
$("input:checked")表示匹配所有选中的被选中元素(复选框、单选框等,不包括select中的option)。
$("div.container")中的'.'号表示class, $("div #msg")中的'#'表示id。那么$(":button") 中的':'表示类型(type),如$(":button") 表示类型为button的控件,$("input:checked")表示所有类型为选中的复选框元素。 参考技术A :在css中代表伪选择符,但是在jQuery里(因为jQuery里的选择器很多地方都使用css中的表示方法),这里就是固定用法,还有如下表单控件:具体的你搜一下就有很多说明。
:input
:text
:password
:radio
:checkbox
:submit
:image
:reset
:button
:file
:hidden
基本
:first
:last
:not
:even
:odd
:eq
:gt
:lt
:header
:animated
内容
:contains
:empty
:has
:parent
可见性
:hidden
:visible本回答被提问者采纳 参考技术B :button 表示选择任何按钮 (input[type=submit],input[type=reset],input[type=button]或button
:checked 表示选择已选中的复选框或单选按钮
在此:表示jQuery自定义选择器,比如还有:file :selected等等, 有问题可以hi我 参考技术C jQuery的过滤选择器
以上是关于BuTTON是啥?的主要内容,如果未能解决你的问题,请参考以下文章
关于jQuery,$(":button") 中的冒号是啥意思?
单击 <button> 元素时的标准行为是啥?它会提交表格吗?
PB中,如何判断groupbox button下选中的是啥radio button?