zoukankan      html  css  js  c++  java
  • SharePoint 2013

    用于在SharePoint中调用其它网站服务时使用。

    1. 需要引用sp.js 和 sp.runtime.js文件;

    2. 需要用到SP.WebRequestInfo,SP.WebProxy,和SP.WebReponseInfo对象;

    3. 例子:

    (function () {
        // Prepare the request to an RSS source
        //  using the GET verb
        var context = SP.ClientContext.get_current();
        var request = new SP.WebRequestInfo();
        request.set_url(
            "http://www.microsoft.com/en-us/news/rss/rssfeed.aspx?ContentType=FeatureStories"
            );
        request.set_method("GET");
        var response = SP.WebProxy.invoke(context, request); //response is type of SP.WebResponseInfo
    
        // Let users know that there is some
        //  processing going on
        document.getElementById("stories").innerHTML =
                    "<P>Loading stories...</P>";
    
        // Set the event handlers and invoke the request
        context.executeQueryAsync(Function.createDelegate(this, successHandler), Function.createDelegate(this, errorHandler));
    })();
  • 相关阅读:
    C语言调试示例
    Tiff格式详解(转载)
    指纹
    twitter
    baidu
    NoSuchMethodError随记
    IllegalArgumentException异常
    Springboot2.2.9接入阿里云ES(带高亮查询)
    阿里云ECS安装cnpm
    阿里云ECS安装docker
  • 原文地址:https://www.cnblogs.com/qijiage/p/3927029.html
Copyright © 2011-2022 走看看