这是我的代码,我已经包含了以下.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)