Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
考虑一下这种情况,如果我将两个用户条目添加到人员选择器(允许多选)字段。 我需要使用 java script/Jquery 计算这些条目(输出我想要的是:2)。 我怎样才能做到这一点。有内置的方法吗??
尝试这个:
$('#idOfPeoplePicker div.ms-inputuserfield>span.ms-entity-resolved').length