artDialog代码已经从google code转移到了github,最新版本的文档在:http://aui.github.io/artDialog/doc/index.html
artDialog文档中用RequireJS加载的方式是:
var dialog = require('./artDialog/src/dialog');
但是我这里所采用的是RequireJS模块加载方法。首先有一个cppPage,js,对应与某个html页面。
在html页面中加载该cppPage.js的标记为:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script data-main="/script/app/cppPage" src="/thirdParty/require.js"></script>
</head>
Nginx已经配置好静态文件路径,使得/script/app/cppPage和/thirdParty/require.js都是有