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 

相关文章:

  • 2022-12-23
  • 2021-09-06
  • 2022-12-23
  • 2022-01-07
  • 2022-12-23
  • 2021-12-15
  • 2021-07-30
猜你喜欢
  • 2021-07-12
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案