监听url

    var _clickEngine = function(e){

        var event = e || window.event;

        var target = event.srcElement || event.target;

        if (target && target.tagName == 'A' && target.target == '_blank'){

            if(target.href.indexOf('xx.xx.com') != -1){

                //相关处理

                if (event.target) {

                    event.stopPropagation();

                    event.preventDefault();

                } else {

                    event.cancelBubble = true;

                    event.returnValue = false;

                }

            }

        }

    };

你可能感兴趣的:(url)