【发布时间】:2014-08-12 02:13:07
【问题描述】:
我目前正在试验Hot Towel SPA Template,如果我理解正确的话,它会为 Durandal 定义这两个库。不过,我无法弄清楚这两个调用之间的确切区别:
// Durandal 2.x assumes no global libraries. It will ship expecting
// Knockout and jQuery to be defined with requirejs. .NET
// templates by default will set them up as standard script
// libs and then register them with require as follows:
define('jquery', function () { return jQuery; });
define('knockout', ko);
define('knockout', function () => { return ko; });? 也会这样做吗?
【问题讨论】:
标签: javascript jquery knockout.js requirejs hottowel