Results 3 issues of Sunw

**目录结构及代码如下:** ![image](https://user-images.githubusercontent.com/14027044/34971379-1edf581a-fab5-11e7-929d-afe098c51737.png) 在使用requirejs的时候 可以正常打印jQuery函数, 但是使用esl的时候, `console.log(jQuery)` 却没有执行, 两种情况下都能正常加载jQuery.

在页面通过`data-main`加载main.js文件: `` 然后在该页面使用 `require(['jquery'], function() { console.log(jQuery); });` 提示加载jQuery模块失败, 原因是执行require函数的时候 main.js 文件尚未加载完成, 所以没有找到jquery的配置信息, 这里是否可以优化一下呢? 以下代码可以正常运行, 但是很鸡肋: `setTimeout(function() { require(["jquery"], function() { console.log(jQuery) }) }, 500)` 另外 , `data-main`指定的路径不能使用相对目录吗? 如果我的页面目录层级不一致, 那么data-main指定的路径也不一致,...

First, the background. Recently I did a project and I wanted to use `MongoTemplate` to query the data collection corresponding to a certain Entity, and then to convert it into...

status: feedback-provided