lib/kissy/5.0.0-alpha.3/build/router-debug.js
function getUrlForRouter(urlStr) {
        urlStr = urlStr || location.href;
        var uri = url.parse(urlStr);
        if (!globalConfig.useHash && supportHistoryPushState) {
            return uri.pathname.substr(globalConfig.urlRoot.length) + (uri.search || '');
        } else {
            return utils.getHash(urlStr);
        }
    }
function getUrlForRouter(urlStr) {
        urlStr = urlStr || location.href;
        var uri = url.parse(urlStr);
        if (!globalConfig.useHash && supportHistoryPushState) {
            return uri.pathname.substr(globalConfig.urlRoot.length) + (uri.search || '');
        } else {
            return utils.getHash(urlStr);
        }
    }
function getUrlForRouter ( urlStr ) { urlStr = urlStr || location . href ; var uri = url . parse ( urlStr ) ; if ( ! globalConfig . useHash && supportHistoryPushState ) { return uri . pathname . substr ( globalConfig . urlRoot . length ) + ( uri . search || '' ) ; } else { return utils . getHash ( urlStr ) ; } }
get url path for router dispatch get url path for router dispatch
get url path for router dispatch get url path for router dispatch