17.7 Events

本文详细介绍了C#中事件的概念及其使用方式。事件是一种特殊成员,允许对象或类提供通知。客户端可以通过提供事件处理程序来响应这些通知。文章解释了如何声明事件,并提供了实例演示如何附加和移除事件处理程序。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

An event is a member that enables an object or class to provide
notifications. Clients can attach executable code
for events by supplying event handlers.
Events are declared using event-declarations:
event-declaration:
attributesopt event-modifiersopt event type variable-declarators ;
attributesopt event-modifiersopt event type member-name {
event-accessor-declarations }
event-modifiers:
event-modifier
event-modifiers event-modifier
event-modifier:
new
public
protected
internal
private
static
virtual
sealed
override
abstract
extern
event-accessor-declarations:
add-accessor-declaration remove-accessor-declaration
remove-accessor-declaration add-accessor-declaration
add-accessor-declaration:
attributesopt add block
Chapter 17 Classes
247
remove-accessor-declaration:
attributesopt remove block
An event-declaration may include a set of attributes (§24) and a valid
combination of the four access modifiers
(§17.2.3), the new (§17.2.2), static (§17.5.2, §17.7.3), virtual (§17.5.
3, §17.7.4), override (§17.5.4,
§17.7.4), sealed (§17.5.5), abstract (§17.5.6, §17.7.4), and extern
modifiers.
Event declarations are subject to the same rules as method declarations (§17
.5) with regard to valid combinations
of modifiers.
The type of an event declaration must be a delegate-type (§11.2), and that
delegate-type must be at least as
accessible as the event itself (§10.5.4).
An event declaration may include event-accessor-declarations. However, if
it does not, for non-extern, nonabstract
events, the compiler shall supply them automatically (§17.7.1); for extern
events, the accessors are
provided externally.
An event declaration that omits event-accessor-declarations defines one or
more events?one for each of the
variable-declarators. The attributes and modifiers apply to all of the
members declared by such an eventdeclaration.
It is a compile-time error for an event-declaration to include both the
abstract modifier and brace-delimited
event-accessor-declarations.
When an event declaration includes an extern modifier, the event is said to
be an external event. Because an
external event declaration provides no actual implementation, it is an
error for it to include both the extern
modifier and event-accessor-declarations.
An event can be used as the left-hand operand of the += and -= operators (§1
4.13.3). These operators are used,
respectively, to attach event handlers to, or to remove event handlers from
an event, and the access modifiers of
the event control the contexts in which such operations are permitted.
Since += and ?= are the only operations that are permitted on an event
outside the type that declares the event,
external code can add and remove handlers for an event, but cannot in any
other way obtain or modify the
underlying list of event handlers.
In an operation of the form x += y or x ?= y, when x is an event and the
reference takes place outside the type
that contains the declaration of x, the result of the operation has type
void (as opposed to having the type of x,
with the value of x after the assignment). This rule prohibits external
code from indirectly examining the
underlying delegate of an event.
[Example: The following example shows how event handlers are attached to
instances of the Button class:
public delegate void EventHandler(object sender, EventArgs e);
public class Button: Control
{
public event EventHandler Click;
}
public class LoginDialog: Form
{
Button OkButton;
Button CancelButton;
public LoginDialog() {
OkButton = new Button(?);
OkButton.Click += new EventHandler(OkButtonClick);
CancelButton = new Button(?);
CancelButton.Click += new EventHandler(CancelButtonClick);
}
void OkButtonClick(object sender, EventArgs e) {
// Handle OkButton.Click event
}
C# LANGUAGE SPECIFICATION
248
void CancelButtonClick(object sender, EventArgs e) {
// Handle CancelButton.Click event
}
}
Here, the LoginDialog instance constructor creates two Button instances and
attaches event handlers to the
Click events. end example]
<tr data-index="0" class="ant-table-row ng-star-inserted"><!----><td data-col-index="0" class="text-truncate text-center left-sticky-checkbox ant-table-cell ant-table-cell-fix-left ng-star-inserted" style="position: sticky; left: 0px;"><span class="ant-table-rep__title ng-star-inserted"><span class="ng-star-inserted"></span><!----><!----><!----></span><!----><st-td><!----><!----><!----><!----><label nz-checkbox="" class="ant-checkbox-wrapper ng-valid ng-star-inserted ng-dirty ng-touched ant-checkbox-wrapper-checked"><span class="ant-checkbox ant-checkbox-checked"><input type="checkbox" class="ant-checkbox-input ng-valid ng-dirty ng-touched"><span class="ant-checkbox-inner"></span></span><span></span></label><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----></st-td></td><!----><!----><td data-col-index="1" class="text-truncate text-col ant-table-cell ant-table-cell-fix-left ant-table-cell-fix-left-last ng-star-inserted" style="position: sticky; left: 45px;"><span class="ant-table-rep__title ng-star-inserted"><span class="ng-star-inserted">项目编号</span><small class="st__head-optional ng-star-inserted"> </small><!----><!----><!----></span><!----><st-td><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><span title="ZB2025-16" class="ng-star-inserted">ZB2025-16</span><!----><!----><!----><!----><!----><!----><!----><!----></st-td></td><!----><!----><td data-col-index="2" class="text-truncate text-col ant-table-cell ng-star-inserted"><span class="ant-table-rep__title ng-star-inserted"><span class="ng-star-inserted">项目经办人</span><small class="st__head-optional ng-star-inserted"> </small><!----><!----><!----></span><!----><st-td><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><span title="天众软件运维账号" class="ng-star-inserted">天众软件运维账号</span><!----><!----><!----><!----><!----><!----><!----><!----></st-td></td><!----><!----><td data-col-index="3" class="text-truncate text-col ant-table-cell ng-star-inserted"><span class="ant-table-rep__title ng-star-inserted"><span class="ng-star-inserted">项目名称</span><small class="st__head-optional ng-star-inserted"> </small><!----><!----><!----></span><!----><st-td><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><span title="测试" class="ng-star-inserted">测试</span><!----><!----><!----><!----><!----><!----><!----><!----></st-td></td><!----><!----><td data-col-index="4" class="text-truncate text-col ant-table-cell ng-star-inserted"><span class="ant-table-rep__title ng-star-inserted"><span class="ng-star-inserted">当前进度</span><small class="st__head-optional ng-star-inserted"> </small><!----><!----><!----></span><!----><st-td><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><span title="生成项目" class="ng-star-inserted">生成项目</span><!----><!----><!----><!----><!----><!----><!----><!----></st-td></td><!----><!----><td data-col-index="5" class="text-truncate text-col ant-table-cell ng-star-inserted"><span class="ant-table-rep__title ng-star-inserted"><span class="ng-star-inserted">需求部门</span><small class="st__head-optional ng-star-inserted"> </small><!----><!----><!----></span><!----><st-td><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><span title="教学与学生管理处" class="ng-star-inserted">教学与学生管理处</span><!----><!----><!----><!----><!----><!----><!----><!----></st-td></td><!----><!----><td data-col-index="6" class="text-truncate text-col ant-table-cell ng-star-inserted"><span class="ant-table-rep__title ng-star-inserted"><span class="ng-star-inserted">需求部门对接人</span><small class="st__head-optional ng-star-inserted"> </small><!----><!----><!----></span><!----><st-td><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><span title="" class="ng-star-inserted"></span><!----><!----><!----><!----><!----><!----><!----><!----></st-td></td><!----><!----><td data-col-index="7" class="text-truncate text-right ant-table-cell ng-star-inserted"><span class="ant-table-rep__title ng-star-inserted"><span class="ng-star-inserted">预算金额(万元)</span><small class="st__head-optional ng-star-inserted"> </small><!----><!----><!----></span><!----><st-td><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><span title="90" class="ng-star-inserted">90</span><!----><!----><!----><!----><!----><!----><!----><!----></st-td></td><!----><!----><td data-col-index="8" class="text-truncate text-center ant-table-cell ng-star-inserted"><span class="ant-table-rep__title ng-star-inserted"><span class="ng-star-inserted">采购意向</span><small class="st__head-optional ng-star-inserted"> </small><!----><!----><!----></span><!----><st-td><!----><!----><!----><!----><!----><!----><a title="" class="ng-star-inserted"></a><!----><!----><!----><!----><!----><!----><!----><!----><!----></st-td></td><!----><!----><td data-col-index="9" class="text-truncate date-col ant-table-cell ng-star-inserted"><span class="ant-table-rep__title ng-star-inserted"><span class="ng-star-inserted">意向公告时间</span><small class="st__head-optional ng-star-inserted"> </small><!----><!----><!----></span><!----><st-td><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><span title="" class="ng-star-inserted"></span><!----><!----><!----><!----><!----><!----><!----><!----></st-td></td><!----><!----><td data-col-index="10" class="text-truncate text-col ant-table-cell ng-star-inserted"><span class="ant-table-rep__title ng-star-inserted"><span class="ng-star-inserted">确认书编号</span><small class="st__head-optional ng-star-inserted"> </small><!----><!----><!----></span><!----><st-td><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><span title="" class="ng-star-inserted"></span><!----><!----><!----><!----><!----><!----><!----><!----></st-td></td><!----><!----><td data-col-index="11" class="text-truncate text-col ant-table-cell ng-star-inserted"><span class="ant-table-rep__title ng-star-inserted"><span class="ng-star-inserted">采购类别</span><small class="st__head-optional ng-star-inserted"> </small><!----><!----><!----></span><!----><st-td><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><span title="" class="ng-star-inserted"></span><!----><!----><!----><!----><!----><!----><!----><!----></st-td></td><!----><!----><td data-col-index="12" class="text-truncate text-col ant-table-cell ng-star-inserted"><span class="ant-table-rep__title ng-star-inserted"><span class="ng-star-inserted">采购类型</span><small class="st__head-optional ng-star-inserted"> </small><!----><!----><!----></span><!----><st-td><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><span title="" class="ng-star-inserted"></span><!----><!----><!----><!----><!----><!----><!----><!----></st-td></td><!----><!----><td data-col-index="13" class="text-truncate text-col ant-table-cell ng-star-inserted"><span class="ant-table-rep__title ng-star-inserted"><span class="ng-star-inserted">采购方式</span><small class="st__head-optional ng-star-inserted"> </small><!----><!----><!----></span><!----><st-td><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><span title="" class="ng-star-inserted"></span><!----><!----><!----><!----><!----><!----><!----><!----></st-td></td><!----><!----><td data-col-index="14" class="text-truncate text-col ant-table-cell ng-star-inserted"><span class="ant-table-rep__title ng-star-inserted"><span class="ng-star-inserted">代理公司</span><small class="st__head-optional ng-star-inserted"> </small><!----><!----><!----></span><!----><st-td><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><span title="" class="ng-star-inserted"></span><!----><!----><!----><!----><!----><!----><!----><!----></st-td></td><!----><!----><td data-col-index="15" class="text-truncate date-col ant-table-cell ng-star-inserted"><span class="ant-table-rep__title ng-star-inserted"><span class="ng-star-inserted">招标公告时间</span><small class="st__head-optional ng-star-inserted"> </small><!----><!----><!----></span><!----><st-td><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><span title="" class="ng-star-inserted"></span><!----><!----><!----><!----><!----><!----><!----><!----></st-td></td><!----><!----><td data-col-index="16" class="text-truncate text-center ant-table-cell ng-star-inserted"><span class="ant-table-rep__title ng-star-inserted"><span class="ng-star-inserted">招标公告链接</span><small class="st__head-optional ng-star-inserted"> </small><!----><!----><!----></span><!----><st-td><!----><!----><!----><!----><!----><!----><a title="" class="ng-star-inserted"></a><!----><!----><!----><!----><!----><!----><!----><!----><!----></st-td></td><!----><!----><td data-col-index="17" class="text-truncate date-col ant-table-cell ng-star-inserted"><span class="ant-table-rep__title ng-star-inserted"><span class="ng-star-inserted">开标时间</span><small class="st__head-optional ng-star-inserted"> </small><!----><!----><!----></span><!----><st-td><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><span title="" class="ng-star-inserted"></span><!----><!----><!----><!----><!----><!----><!----><!----></st-td></td><!----><!----><td data-col-index="18" class="text-truncate text-col ant-table-cell ng-star-inserted"><span class="ant-table-rep__title ng-star-inserted"><span class="ng-star-inserted">开标地点</span><small class="st__head-optional ng-star-inserted"> </small><!----><!----><!----></span><!----><st-td><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><span title="" class="ng-star-inserted"></span><!----><!----><!----><!----><!----><!----><!----><!----></st-td></td><!----><!----><td data-col-index="19" class="text-truncate text-col ant-table-cell ng-star-inserted"><span class="ant-table-rep__title ng-star-inserted"><span class="ng-star-inserted">采购人代表</span><small class="st__head-optional ng-star-inserted"> </small><!----><!----><!----></span><!----><st-td><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><span title="" class="ng-star-inserted"></span><!----><!----><!----><!----><!----><!----><!----><!----></st-td></td><!----><!----><td data-col-index="20" class="text-truncate text-right ant-table-cell ng-star-inserted"><span class="ant-table-rep__title ng-star-inserted"><span class="ng-star-inserted">中标金额(万元)</span><small class="st__head-optional ng-star-inserted"> </small><!----><!----><!----></span><!----><st-td><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><span title="" class="ng-star-inserted"></span><!----><!----><!----><!----><!----><!----><!----><!----></st-td></td><!----><!----><td data-col-index="21" class="text-truncate text-right ant-table-cell ng-star-inserted"><span class="ant-table-rep__title ng-star-inserted"><span class="ng-star-inserted">招标结余(万元)</span><small class="st__head-optional ng-star-inserted"> </small><!----><!----><!----></span><!----><st-td><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><span title="" class="ng-star-inserted"></span><!----><!----><!----><!----><!----><!----><!----><!----></st-td></td><!----><!----><td data-col-index="22" class="text-truncate text-col ant-table-cell ng-star-inserted"><span class="ant-table-rep__title ng-star-inserted"><span class="ng-star-inserted">中标金额备注</span><small class="st__head-optional ng-star-inserted"> </small><!----><!----><!----></span><!----><st-td><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><span title="" class="ng-star-inserted"></span><!----><!----><!----><!----><!----><!----><!----><!----></st-td></td><!----><!----><td data-col-index="23" class="text-truncate text-col ant-table-cell ng-star-inserted"><span class="ant-table-rep__title ng-star-inserted"><span class="ng-star-inserted">中标单位</span><small class="st__head-optional ng-star-inserted"> </small><!----><!----><!----></span><!----><st-td><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><span title="" class="ng-star-inserted"></span><!----><!----><!----><!----><!----><!----><!----><!----></st-td></td><!----><!----><td data-col-index="24" class="text-truncate text-center ant-table-cell ng-star-inserted"><span class="ant-table-rep__title ng-star-inserted"><span class="ng-star-inserted">中标结果链接</span><small class="st__head-optional ng-star-inserted"> </small><!----><!----><!----></span><!----><st-td><!----><!----><!----><!----><!----><!----><a title="" class="ng-star-inserted"></a><!----><!----><!----><!----><!----><!----><!----><!----><!----></st-td></td><!----><!----><td data-col-index="25" class="text-truncate text-right ant-table-cell ng-star-inserted"><span class="ant-table-rep__title ng-star-inserted"><span class="ng-star-inserted">履约保证金(万元)</span><small class="st__head-optional ng-star-inserted"> </small><!----><!----><!----></span><!----><st-td><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><span title="" class="ng-star-inserted"></span><!----><!----><!----><!----><!----><!----><!----><!----></st-td></td><!----><!----><td data-col-index="26" class="text-truncate text-col ant-table-cell ng-star-inserted"><span class="ant-table-rep__title ng-star-inserted"><span class="ng-star-inserted">履约保证金缴纳状态</span><small class="st__head-optional ng-star-inserted"> </small><!----><!----><!----></span><!----><st-td><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><span title="" class="ng-star-inserted"></span><!----><!----><!----><!----><!----><!----><!----><!----></st-td></td><!----><!----><td data-col-index="27" class="text-truncate date-col ant-table-cell ng-star-inserted"><span class="ant-table-rep__title ng-star-inserted"><span class="ng-star-inserted">项目生成时间</span><small class="st__head-optional ng-star-inserted"> </small><!----><!----><!----></span><!----><st-td><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><span title="2025-07-16" class="ng-star-inserted">2025-07-16</span><!----><!----><!----><!----><!----><!----><!----><!----></st-td></td><!----><!----><td data-col-index="28" class="text-truncate date-col ant-table-cell ng-star-inserted"><span class="ant-table-rep__title ng-star-inserted"><span class="ng-star-inserted">进度记录时间</span><small class="st__head-optional ng-star-inserted"> </small><!----><!----><!----></span><!----><st-td><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><span title="2025-07-16" class="ng-star-inserted">2025-07-16</span><!----><!----><!----><!----><!----><!----><!----><!----></st-td></td><!----><!----><td data-col-index="29" class="text-truncate date-col ant-table-cell ng-star-inserted"><span class="ant-table-rep__title ng-star-inserted"><span class="ng-star-inserted">项目完成时间</span><small class="st__head-optional ng-star-inserted"> </small><!----><!----><!----></span><!----><st-td><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><span title="" class="ng-star-inserted"></span><!----><!----><!----><!----><!----><!----><!----><!----></st-td></td><!----><!----><td data-col-index="30" class="text-truncate text-col ant-table-cell ng-star-inserted"><span class="ant-table-rep__title ng-star-inserted"><span class="ng-star-inserted">备注</span><small class="st__head-optional ng-star-inserted"> </small><!----><!----><!----></span><!----><st-td><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><span title="" class="ng-star-inserted"></span><!----><!----><!----><!----><!----><!----><!----><!----></st-td></td><!----><!----><td data-col-index="31" class="text-truncate text-center ant-table-cell ng-star-inserted"><span class="ant-table-rep__title ng-star-inserted"><span class="ng-star-inserted">采购请示及相关文件</span><small class="st__head-optional ng-star-inserted"> </small><!----><!----><!----></span><!----><st-td><!----><!----><!----><!----><!----><!----><a title="" class="ng-star-inserted"></a><!----><!----><!----><!----><!----><!----><!----><!----><!----></st-td></td><!----><!----><td data-col-index="32" class="text-truncate text-center ant-table-cell ng-star-inserted"><span class="ant-table-rep__title ng-star-inserted"><span class="ng-star-inserted">预算执行确认书</span><small class="st__head-optional ng-star-inserted"> </small><!----><!----><!----></span><!----><st-td><!----><!----><!----><!----><!----><!----><a title="" class="ng-star-inserted"></a><!----><!----><!----><!----><!----><!----><!----><!----><!----></st-td></td><!----><!----><td data-col-index="33" class="text-truncate text-center ant-table-cell ng-star-inserted"><span class="ant-table-rep__title ng-star-inserted"><span class="ng-star-inserted">招标文件</span><small class="st__head-optional ng-star-inserted"> </small><!----><!----><!----></span><!----><st-td><!----><!----><!----><!----><!----><!----><a title="" class="ng-star-inserted"></a><!----><!----><!----><!----><!----><!----><!----><!----><!----></st-td></td><!----><!----><td data-col-index="34" class="text-truncate text-center ant-table-cell ng-star-inserted"><span class="ant-table-rep__title ng-star-inserted"><span class="ng-star-inserted">合同文件</span><small class="st__head-optional ng-star-inserted"> </small><!----><!----><!----></span><!----><st-td><!----><!----><!----><!----><!----><!----><a title="" class="ng-star-inserted"></a><!----><!----><!----><!----><!----><!----><!----><!----><!----></st-td></td><!----><!----><td data-col-index="35" class="text-truncate text-center ant-table-cell ng-star-inserted"><span class="ant-table-rep__title ng-star-inserted"><span class="ng-star-inserted">其他相关附件</span><small class="st__head-optional ng-star-inserted"> </small><!----><!----><!----></span><!----><st-td><!----><!----><!----><!----><!----><!----><a title="" class="ng-star-inserted"></a><!----><!----><!----><!----><!----><!----><!----><!----><!----></st-td></td><!----><!----><td data-col-index="36" class="text-truncate text-center ant-table-cell ant-table-cell-fix-right ant-table-cell-fix-right-first ng-star-inserted" style="position: sticky; right: 0px;"><span class="ant-table-rep__title ng-star-inserted"><span class="ng-star-inserted">操作</span><!----><!----><!----></span><!----><st-td><!----><!----><!----><!----><!----><!----><!----><!----><!----><!----><span class="ng-star-inserted"></span><!----><!----><!----><!----><!----><!----><!----><span class="ng-star-inserted"><!----><a class="st__btn-text ng-star-inserted"><i nz-icon="" class="anticon anticon-eye ng-star-inserted"><svg viewBox="64 64 896 896" focusable="false" fill="currentColor" width="1em" height="1em" data-icon="eye" aria-hidden="true"><path d="M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"></path></svg></i><!----><!----><!----><!----><span class="pl-xs ng-star-inserted"></span><!----></a><!----><!----><!----><!----><!----><!----></span><!----><nz-divider nztype="vertical" class="ant-divider ant-divider-vertical ng-star-inserted"><!----></nz-divider><!----><!----><!----><!----><span class="ng-star-inserted"><!----><a class="st__btn-text ng-star-inserted"><i nz-icon="" class="anticon anticon-edit ng-star-inserted"><svg viewBox="64 64 896 896" focusable="false" fill="currentColor" width="1em" height="1em" data-icon="edit" aria-hidden="true"><path d="M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"></path></svg></i><!----><!----><!----><!----><span class="pl-xs ng-star-inserted"></span><!----></a><!----><!----><!----><!----><!----><!----></span><!----><nz-divider nztype="vertical" class="ant-divider ant-divider-vertical ng-star-inserted"><!----></nz-divider><!----><!----><!----><!----><span class="ng-star-inserted"><a nz-popconfirm="" class="st__btn-text ng-star-inserted"><i nz-icon="" class="anticon anticon-delete ng-star-inserted"><svg viewBox="64 64 896 896" focusable="false" fill="currentColor" width="1em" height="1em" data-icon="delete" aria-hidden="true"><path d="M292.7 840h438.6l24.2-512h-487z" fill="#ffeae6"></path><path d="M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zm-504-72h304v72H360v-72zm371.3 656H292.7l-24.2-512h487l-24.2 512z" fill="#f00"></path></svg></i><!----><!----><!----><!----><span class="pl-xs ng-star-inserted"></span><!----></a><!----><!----><!----><!----><!----><!----><!----><!----></span><!----><!----><!----><!----><!----><!----></st-td></td><!----><!----><!----></tr> 选中行有ant-checkbox-wrapper-checked属性 如何将整行高亮
07-17
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值