gpt4 book ai didi

jquery - 在 jquery 上下文菜单中使用多个选择器

转载 作者:行者123 更新时间:2023-12-01 07:55:07 24 4
gpt4 key购买 nike

是否可以在 jquery 上下文菜单中提及多个选择器,如果是,那么任何人都可以告诉我如何做到这一点。

谢谢

编辑:下面是代码

 $.contextMenu({
selector: '.recur',
className: 'css-title',
callback: function (key, options) {
var vKey = key;
//var vLinkedId = options.$trigger.attr("linkedid");
var vLinkedId = $(this).children().children("div:first").attr('linkedid');
var vmeetingtitle = $(this).children().children("div:first").attr('meetingtitle');
var vurl = '/SitePages/Send%20Email.aspx?linkedid=' + vLinkedId + '&date=' + $("#<%= txtDate.ClientID %>").val() + "&type=" + vKey;
var vtitle = vmeetingtitle + ' - ' + vKey + ' email';
//var Date
OpenDialog(vurl, 600, 300, vtitle);
},
items: {
"Confirmation": {
name: "Confirmation",
accesskey: "Confirmation"
},
"Catering Cancelled": {
name: "Catering Cancelled",
accesskey: "Catering Cancelled"
},
"Catering Requirements Amended": {
name: "Catering Requirements Amended",
accesskey: "Catering Requirements Amended"
},
"Room Changed": {
name: "Room Changed",
accesskey: "Room Changed"
},
"Time Changed": {
name: "Time Changed",
accesskey: "Time Changed"
},
"Room and Time Changed": {
name: "Room and Time Changed",
accesskey: "Room and Time Changed"
},
"Facilities Cancelled": {
name: "Facilities Cancelled",
accesskey: "Facilities Cancelled"
},
"Facilities Changed": {
name: "Facilities Changed",
accesskey: "Facilities Changed"
}
}
});

最佳答案

像普通的 jQuery 代码一样,您可以使用多个选择器,如下所示:

selector: '.recur, #theOtherone, .thisClassToo'

关于jquery - 在 jquery 上下文菜单中使用多个选择器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25236599/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com