SharePoint2010 ECMAScript常用提醒方法

 var statusId = '';
 var notifyId = '';
 function AddNotification() {
 notifyId = SP.UI.Notify.addNotification("Hello World!", true);
 }
 function RemoveNotification() {
 SP.UI.Notify.removeNotification(notifyId);
 notifyId = '';
 }
 function AddStatus() {
 statusId = SP.UI.Status.addStatus("Status good!");
 SP.UI.Status.setStatusPriColor(statusId, 'red');
 }
 function RemoveLastStatus() {
 SP.UI.Status.removeStatus(statusId);
 statusId = '';
 }
 function RemoveAllStatus() {
 SP.UI.Status.removeAllStatus(true);
 }

【转】 http://www.cnblogs.com/wengnet/archive/2012/08/02/SP_JS_Code1.html 

posted @ 2012-08-02 17:24  小师傅  阅读(174)  评论(0编辑  收藏  举报