code: function (resourceName, moduleName, needCombo) {
      // 默认为当前页面的js名称
      var jsName = path.basename(ViewHelper.tpl,  path.extname(ViewHelper.tpl));
      needCombo = (_.isNull(needCombo) || _.isUndefined(needCombo)) ? true : needCombo;
      if (!moduleName || (moduleName === ViewHelper.config.module)) {
        moduleName = ViewHelper.config.module;
      }
      if (!ViewHelper.mapJson.include[ViewHelper.tpl]) {
        ViewHelper.mapJson.include[ViewHelper.tpl] = {
          'css': [],
          'js': []
        };
      }
      if (resourceName) {
        // 必须为js
        if (!Util.regexps.js.test(resourceName)) {
          return;
        }
        var jsDirReg = /^\/{0,}js\/(.*)/;
        var match = resourceName.match(jsDirReg);
        if (match !== null) {
          resourceName = match[1];
        }
        jsName = resourceName.replace(path.extname(resourceName), '');
      }
      ViewHelper.mapJson.include[ViewHelper.tpl].js.push({
        name: jsName + '.js',
        module: moduleName
      });
      var scriptText = '';
      var jsUrl = 'js/' + jsName + '.js';
      jsUrl = '/' + moduleName + '/' + jsUrl;
      if (ViewHelper.config.useShtml && needCombo) {
        if (needCombo === 'inline') {
          scriptText = '<script src="' + jsUrl + '" combo-use inline></script>';
        } else {
          scriptText = '<script src="' + jsUrl + '" combo-use></script>';
        }
      } else {
        scriptText = '<script src="' + jsUrl + '"></script>';
      }
      return scriptText + '\n' + '<!-- includeScriptEndPlaceHolder -->';
    }
docs: 输出js引用链接