router

dojo/router

Summary

A singleton-style instance of dojo/router/RouterBase. See that module for specifics.

See the dojo/router reference documentation for more information.

Examples

Example 1

router.register("/widgets/:id", function(evt){
    // If "/widgets/3" was matched,
    // evt.params.id === "3"
    xhr.get({
        url: "/some/path/" + evt.params.id,
        load: function(data){
            // ...
        }
    });
});

© 2005–2015 The Dojo Foundation
Licensed under the AFL 2.1 and BSD 3-Clause licenses.
http://dojotoolkit.org/api/1.10/dojo/router.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部