mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 18:32:22 +00:00
19 lines
459 B
HTML
19 lines
459 B
HTML
<html>
|
|
<head>
|
|
<title>ES6标准参考教程</title>
|
|
<script>
|
|
var loc = 'https://es6.ruanyifeng.com';
|
|
var regex = /http:\/\/es6\.ruanyifeng\.com\/docs\/([^#]+)#(.+)/;
|
|
var result = regex.exec(window.location);
|
|
if (result) {
|
|
window.location = loc + '/#docs/' + result[1] + '#' + result[2];
|
|
} else {
|
|
window.location = loc;
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<p>redirecting...</p>
|
|
</body>
|
|
</html>
|