Why pass a.js in a module var AppBridge = require('widget/util'); console.log(AppBridge)
Cannot introduce util.js normally, print The result is null, and it must be called in other imported js b.js used on the page seajs.use(['widget/util'], function Util) {})
At this time a.js can The results of AppBridge are printed normally. What is happening?
var AppBridge = require('widget/util'); util is relative to the location of the seajs file
and seajs.use is directly relative