Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/104.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
Knockout.js 在SPEAK UI页面中实现KoGrid.JS_Knockout.js_Sitecore_Sitecore8_Kogrid_Sitecore Speak Ui - Fatal编程技术网

Knockout.js 在SPEAK UI页面中实现KoGrid.JS

Knockout.js 在SPEAK UI页面中实现KoGrid.JS,knockout.js,sitecore,sitecore8,kogrid,sitecore-speak-ui,Knockout.js,Sitecore,Sitecore8,Kogrid,Sitecore Speak Ui,我需要将KoGrid.JS集成到我的SPEAK UI自定义组件页面中 但我面临以下问题: 获取KO是未定义的错误,因为它没有获取Knockout.JS的引用 我们发现的原因-Speak UI在呈现我们自己的自定义js文件后,在最后呈现Knockout.js。所以我们不能使用任何敲除函数 如何实现具有KOGrid.JS等功能的淘汰网格?确保在文档完全加载javascript和所有内容之前,您不会执行任何代码。使用: 如果没有,您的问题很有可能被关闭。 $(function() { var

我需要将KoGrid.JS集成到我的SPEAK UI自定义组件页面中

但我面临以下问题:

获取KO是未定义的错误,因为它没有获取Knockout.JS的引用

我们发现的原因-Speak UI在呈现我们自己的自定义js文件后,在最后呈现Knockout.js。所以我们不能使用任何敲除函数


如何实现具有KOGrid.JS等功能的淘汰网格?

确保在文档完全加载javascript和所有内容之前,您不会执行任何代码。使用:

如果没有,您的问题很有可能被关闭。
$(function() {
    var vm = new viewModel();
    ko.applyBindings(vm);
});