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是我的应用程序的名称).它曾经工作,然后突然停止工作.难道我做错了什么?