小编Nir*_*rni的帖子

代码给出了错误,"ReferenceError:CryptoJS未定义",而我已经包含了必需的.js引用,这是什么原因?

这是我的代码,我已经包含了以下.js文件,onpage load它给出了错误"ReferenceError:CryptoJS未定义"为什么它在添加了js引用时会给出错误.我正在使用Office 365创建一个sharepoint-2013应用程序.

<script type="text/javascript" src="../Scripts/sha1.js"></script>
<script type="text/javascript" src="../Scripts/hmac-sha1.js"></script>

  'use strict';

var context = SP.ClientContext.get_current();
var user = context.get_web().get_currentUser();

(function () {

    // This code runs when the DOM is ready and creates a context object which is 
    // needed to use the SharePoint object model
    $(document).ready(function () 
    {
        getUserName();

        $("#button1").click(function()
        {
                paraupdate();   
        });

    });

    // This function prepares, loads, and then executes a SharePoint query to get 
    // the current users information

    function paraupdate()
    {

        var str=""+$("#textbox1").val();
        alert(""+str);
        var …
Run Code Online (Sandbox Code Playgroud)

javascript ajax json sharepoint-2013

6
推荐指数
2
解决办法
2万
查看次数

标签 统计

ajax ×1

javascript ×1

json ×1

sharepoint-2013 ×1