webx笔记-URIBroker

统一配置,解决动态产生url路径

petstore中的url配置示例:

    
        
        
        
        
        
        
            http://china.alibaba.com/
        
        
            http://toolkit.alibaba-inc.com/
        
        
        
        
        
        
        
            /
        
        
        
        
        
        
        
        
        
            /
        
        
            /home
        
        
        
            /user
        
        
        
        
            /store
        
        
        
            /petstore/images
        
        
        
        
        
        
        
            homepage
        
        
            login
        
        
            login
            loginAction
            yes
        
        
            register
        
        
            registerAccount
        
        
            account
        
        
            /arch/bigpicture.html
        
    

页面生成url:

* $petstoreRegisterLink:http://localhost:8080/user/register.htm
* $userModule.setTarget("account"):http://localhost:8080/user/account.htm
* $petstoreLogoutLink:http://localhost:8080/user/login.htm?action=loginAction&eventSubmitDoLogout=yes

参考:
https://blog.csdn.net/cpf2016/article/details/45559769

你可能感兴趣的:(webx笔记-URIBroker)