16 lines
409 B
JavaScript
16 lines
409 B
JavaScript
class VideoInfo {
|
|
constructor() {
|
|
this.ListData = JSON.parse(localStorage.getItem("video"))
|
|
this.renderList()
|
|
}
|
|
|
|
renderList() {
|
|
var data =this
|
|
console.log(this.ListData);
|
|
$(".img_hidden a video").attr("src", data.ListData.video)
|
|
$(".conten h1").text(data.ListData.title)
|
|
$(".conten p").text(data.ListData.practice)
|
|
}
|
|
}
|
|
|
|
new VideoInfo() |