javascriptクライアントオブジェクトモデルを使用して、SharePoint 2010(SandBoxed)のQuicklaunchアイテムを動的に削除しようとしています。
コードは正しく実行されます。選択したアイテムは現在のquickLaunchNodeCollectionから削除されますが、quickLaunchNodeCollectionをリロードしても、選択したアイテムはまだ存在しています。
function RemoveQuickLaunchNode() {
var clientContext = new SP.ClientContext('/');
this.nodeToRemove = this.quickLaunchNodeCollection.get_item(8);
this.nodeToRemove.deleteObject();
clientContext.executeQueryAsync(Function.createDelegate(this, this.onRefresh), Function.createDelegate(this, this.Failedmsg));
}
誰かが私を助けることができますか?
ありがとう 。