function(container, progress, color) {
		if (typeof container === 'number') {
			color = progress;
			progress = container;
			container = 'body';
		}
		container = $(container || 'body');
		if (container.length === 0) return;
		container = container[0];
		var progressbar;
		if (container.classList.contains(CLASS_PROGRESSBAR)) {
			progressbar = container;
		} else {
			var progressbars = container.querySelectorAll(SELECTOR_PROGRESSBAR + ':not(.' + CLASS_PROGRESSBAR_OUT + ')');
			if (progressbars) {
				for (var i = 0, len = progressbars.length; i < len; i++) {
					var _progressbar = progressbars[i];
					if (_progressbar.parentNode === container) {
						progressbar = _progressbar;
						break;
					}
				}
			}
			if (!progressbar) {
				progressbar = document.createElement('span');
				progressbar.className = CLASS_PROGRESSBAR + ' ' + CLASS_PROGRESSBAR_IN + (typeof progress !== 'undefined' ? '' : (' ' + CLASS_PROGRESSBAR_INFINITE)) + (color ? (' ' + CLASS_PROGRESSBAR + '-' + color) : '');
				if (typeof progress !== 'undefined') {
					progressbar.innerHTML = '<span></span>';
				}
				container.appendChild(progressbar);
			} else {
				progressbar.classList.add(CLASS_PROGRESSBAR_IN);
			}
		}
		if (progress) setProgressbar(container, progress);
		return progressbar;
	}
function(container, progress, color) {
		if (typeof container === 'number') {
			color = progress;
			progress = container;
			container = 'body';
		}
		container = $(container || 'body');
		if (container.length === 0) return;
		container = container[0];
		var progressbar;
		if (container.classList.contains(CLASS_PROGRESSBAR)) {
			progressbar = container;
		} else {
			var progressbars = container.querySelectorAll(SELECTOR_PROGRESSBAR + ':not(.' + CLASS_PROGRESSBAR_OUT + ')');
			if (progressbars) {
				for (var i = 0, len = progressbars.length; i < len; i++) {
					var _progressbar = progressbars[i];
					if (_progressbar.parentNode === container) {
						progressbar = _progressbar;
						break;
					}
				}
			}
			if (!progressbar) {
				progressbar = document.createElement('span');
				progressbar.className = CLASS_PROGRESSBAR + ' ' + CLASS_PROGRESSBAR_IN + (typeof progress !== 'undefined' ? '' : (' ' + CLASS_PROGRESSBAR_INFINITE)) + (color ? (' ' + CLASS_PROGRESSBAR + '-' + color) : '');
				if (typeof progress !== 'undefined') {
					progressbar.innerHTML = '<span></span>';
				}
				container.appendChild(progressbar);
			} else {
				progressbar.classList.add(CLASS_PROGRESSBAR_IN);
			}
		}
		if (progress) setProgressbar(container, progress);
		return progressbar;
	}
function ( container , progress , color ) { if ( typeof container === 'number' ) { color = progress ; progress = container ; container = 'body' ; } container = $ ( container || 'body' ) ; if ( container . length === 0 ) return ; container = container [ 0 ] ; var progressbar ; if ( container . classList . contains ( CLASS_PROGRESSBAR ) ) { progressbar = container ; } else { var progressbars = container . querySelectorAll ( SELECTOR_PROGRESSBAR + ':not(.' + CLASS_PROGRESSBAR_OUT + ')' ) ; if ( progressbars ) { for ( var i = 0 , len = progressbars . length ; i < len ; i ++ ) { var _progressbar = progressbars [ i ] ; if ( _progressbar . parentNode === container ) { progressbar = _progressbar ; break ; } } } if ( ! progressbar ) { progressbar = document . createElement ( 'span' ) ; progressbar . className = CLASS_PROGRESSBAR + ' ' + CLASS_PROGRESSBAR_IN + ( typeof progress !== 'undefined' ? '' : ( ' ' + CLASS_PROGRESSBAR_INFINITE ) ) + ( color ? ( ' ' + CLASS_PROGRESSBAR + '-' + color ) : '' ) ; if ( typeof progress !== 'undefined' ) { progressbar . innerHTML = '<span></span>' ; } container . appendChild ( progressbar ) ; } else { progressbar . classList . add ( CLASS_PROGRESSBAR_IN ) ; } } if ( progress ) setProgressbar ( container , progress ) ; return progressbar ; }
创建并显示进度条
@param {Object} container  可选，默认body，支持selector,DOM Node,mui wrapper
@param {Object} progress 可选，undefined表示循环，数字表示具体进度
@param {Object} color 可选，指定颜色样式(目前暂未提供实际样式，可暂时不暴露此参数)
创建并显示进度条
Creates a progress bar element