code: function autoForJquery (ref) {
    var t$ = ref;
  
    try {
      if (window) {
        console.assert(Tool.isBrowser(), 'Please check current window object is a browser root Window instance !!');
        console.assert(Tool.isWindow(window), 'Please check the current code, window variables are overwritten !!');
        if (window.jQuery && window.$) {
          window.$['objClone'] = t$.objClone;
          window.$['getMyDateStr'] = t$.getMyDateStr;
          window.$['getFormatDateStr'] = t$.getFormatDateStr;
          window.$['obj2string'] = t$.obj2string;
          window.$['stringFormat'] = t$.stringFormat;
          window.$['compareVersion'] = t$.compareVersion;
          window.$['testObjectType'] = t$.testObjectType;
          window.$['getErrorMessage'] = t$.getErrorMessage;
          window.$['RSTestUnit'] = t$.RSTestUnit;
  
          window.$ = window.$.extend(window.$, t$);
        }
      }
    } catch (error) {
      // console.warn(error)
    }
  }
docs: 检测全局变量JQuery是否存在, 兼容以前代码