Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/383.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 未捕获类型错误:无法读取属性';数据表';未定义的_Javascript_Sharepoint_Google Visualization_Undefined_Labjs - Fatal编程技术网

Javascript 未捕获类型错误:无法读取属性';数据表';未定义的

Javascript 未捕获类型错误:无法读取属性';数据表';未定义的,javascript,sharepoint,google-visualization,undefined,labjs,Javascript,Sharepoint,Google Visualization,Undefined,Labjs,试图在图表点中使用google图表,同时通过LABjs加载资源 我一直得到一个错误,DataTable未定义 这是我用来加载LABjs的: <asp:ScriptManager id="ScriptManager" runat="server" EnablePageMethods="false" EnablePartialRendering="true" EnableScriptGlobalization="false" EnableScriptLocalization="true">

试图在图表点中使用google图表,同时通过LABjs加载资源

我一直得到一个错误,DataTable未定义

这是我用来加载LABjs的:

<asp:ScriptManager id="ScriptManager" runat="server" EnablePageMethods="false" EnablePartialRendering="true" EnableScriptGlobalization="false" EnableScriptLocalization="true">
    <Scripts>
        <%-- Script Manager -Kessy Dec9/13 --%>
        <asp:ScriptReference Path="/Style Library/libs/LAB.min.js">
        </asp:ScriptReference><asp:ScriptReference Path="/Style Library/libs/scriptloader.js"></asp:ScriptReference>
    </Scripts>
</asp:ScriptManager>
jQuery是第一个调用,在它之前没有运行任何其他东西,然后我在jsapi之后调用其他东西,并确保在jsapi之前没有调用图表。它在sharepoint aspx文件中加载时工作正常,但我希望使用LAB更好地管理脚本

错误:


你是否调用
google.load
加载可视化API?@asgallant击败了我。这是当库不是
google.load
ed,并且它不知道DataTable是什么时,您得到的消息。我不太确定。我认为HTML首先呈现为图表的div。然后是google/jsapi,然后是生成图表的脚本。
$LAB
    .script("/Style Library/libs/jquery-1.10.2.min.js").wait()
    .script("/Style Library/libs/jquery-ui.min.js")
    .script("/Style Library/libs/jquery.SPServices-2013.01.min.js")
    .script("/Style Library/libs/angular.min.js")
    .script("/Style Library/libs/knockout-3.0.0.js")
    .script("/Style Library/addons/wpToggle/wpToggle-jQuery.js")
    .script("https://www.google.com/jsapi").wait()
    .script("/Style Library/addons/spCharts/spjs-charts-v4.js")
    .script("/Style Library/addons/quickLaunchToggle/jQuery.LISP.quicklaunch.js")
    .script("/Style Library/addons/digitalClock/digitalClock.js");