SharePoint2010 ECMAScript常用提醒方法

不多说,直接上代码:

 1 var statusId = '';
 2 var notifyId = '';
 3 function AddNotification() {
 4 notifyId = SP.UI.Notify.addNotification("Hello World!", true);
 5 }
 6 function RemoveNotification() {
 7 SP.UI.Notify.removeNotification(notifyId);
 8 notifyId = '';
 9 }
10 function AddStatus() {
11 statusId = SP.UI.Status.addStatus("Status good!");
12 SP.UI.Status.setStatusPriColor(statusId, 'red');
13 }
14 function RemoveLastStatus() {
15 SP.UI.Status.removeStatus(statusId);
16 statusId = '';
17 }
18 function RemoveAllStatus() {
19 SP.UI.Status.removeAllStatus(true);
20 }

你可能感兴趣的:(SharePoint2010 ECMAScript常用提醒方法)