...
|
...
|
@@ -4,6 +4,9 @@ |
|
|
* @date: 2015/11/23
|
|
|
*/
|
|
|
|
|
|
|
|
|
import {timeout} from './es6-test';
|
|
|
|
|
|
var $ = require('yoho-jquery'),
|
|
|
lazyLoad = require('yoho-jquery-lazyload');
|
|
|
|
...
|
...
|
@@ -13,6 +16,19 @@ var homePage = $('.home-page').data('page'), |
|
|
|
|
|
var yas = require('../common/data-yas');
|
|
|
|
|
|
const defTimeout = (time, type = 'default') => {
|
|
|
return timeout(time).then(()=> {
|
|
|
console.log(`${type} timeout`);
|
|
|
});
|
|
|
};
|
|
|
|
|
|
(async function() {
|
|
|
await defTimeout(10000, 'await');
|
|
|
defTimeout(500);
|
|
|
|
|
|
console.log('async end');
|
|
|
}());
|
|
|
|
|
|
// 给头部js获取当前频道
|
|
|
window.homePage = homePage;
|
|
|
|
...
|
...
|
|