// amd/logger.js —— 无依赖,返回一个对象 define([], function () { return { log: function (msg) { return '[log] ' + msg; } }; });