连云港陪玩陪聊
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
591 B

import { VideoEntity } from './videoEntity'
import MockWorker from './mockWorker'
export class Parser {
/**
* url: 资源路径
* success(VideoEntity videoItem)
*/
load(url, success, failure) {
this.loadViaWorker(url, success, failure);
}
loadViaWorker(url, success, failure) {
MockWorker(url, (data) => {
let movie = data.movie;
movie["version"] = data.ver;
let images = data.images;
let videoItem = new VideoEntity(movie, images);
success(videoItem);
}, failure)
}
}