code: function (resourceName, moduleName, onlyPage) {
      var jsName = path.basename(ViewHelper.tpl, path.extname(ViewHelper.tpl));
      onlyPage = onlyPage || false;
      var scriptPre = '';
      if (typeof moduleName !== 'string') {
        moduleName = ViewHelper.config.module;
      }
  
      if (resourceName) {
        // 必须为js
        if (!Util.regexps.js.test(resourceName)) {
          return;
        }
        jsName = path.basename(resourceName, path.extname(resourceName));
      }
  
      resourceName = jsName + '.js';
      if (resourceName && moduleName) {
        scriptPre = '<%= getJS(\'' + resourceName + '\', \'' + moduleName + '\', ' + onlyPage + ') %>';
      } else if (resourceName && !moduleName) {
        scriptPre = '<%= getJS(\'' + resourceName + '\') %>';
      } else if (!resourceName && !moduleName) {
        scriptPre =  '<%= getJS() %>';
      }
      return scriptPre + '\n' + '<!-- includeScriptEndPlaceHolder -->';
    }
docs: 输出js引用链接