MyGit

1.8.0

visionmedia/page.js

版本发布时间: 2018-01-17 20:27:17

visionmedia/page.js最新发布版本:v1.11.5(2019-09-27 19:17:29)

This is a minor release, adding one new (minor) feature and a few bug fixes and documentation improvements.

Controlling other pages

The new feature of this release is that page.js can now control other pages (windows) besides the main window. This makes it possible to control an iframe's routing. You can use it by passing the window option to start:

page('/', function(){
  // Whoa, I'm inside an iframe!
});

page.start({ window: myiFrame.contentWindow });

Note that page is still a singleton, which means you can only have 1 page, so you can't control both an iframe and the main window at the same time.

This change was made to improve our testing, but in the future we'll make it possible to have multiple page objects so you really will be able to control multiple iframes and the main window all at the same time.

Better hashbang support

Hashbang support has never been very good in page.js. But we're slowly improving it! In 1.8.0 we've fixed the problem where the app's full URL would show up in the hashbang upon start. http://example.com/my/page#!/my/page. Gross! No longer happens thanks to #447.

Pull Requests

Those are the big things, but here's a list of all of the pull requests merged into 1.8.0:

相关地址:原始地址 下载(tar) 下载(zip)

查看:2018-01-17发行的版本