var dataTransferManager = Windows.ApplicationModel.DataTransfer.DataTransferManager.getForCurrentView();
dataTransferManager.addEventListener("datarequested", function (e) {
var request = e.request;
request.data.properties.title = "Share Link Example";
request.data.properties.description = "A demonstration that shows how to add a link (URI) to share.";
request.data.setUri(new Windows.Foundation.Uri("http://www.google.com"));
});
出于某种原因,如果我单击“共享”魅力,它只会挂在“从 GodVine 获取信息”上(GodVine 是我的应用程序的名称)。它曾经工作,然后突然停止工作。难道我做错了什么?