16 lines
354 B
JavaScript
16 lines
354 B
JavaScript
class videoInfo {
|
|
constructor() {
|
|
this.renderVideo()
|
|
}
|
|
|
|
|
|
renderVideo() {
|
|
this.data= JSON.parse(localStorage.getItem("video"))
|
|
|
|
|
|
$(".img_hidden a video").attr("src", this.data.video)
|
|
$(".conten h1").text(this.data.title)
|
|
$(".conten p").text(this.data.introduce)
|
|
}
|
|
}
|
|
new videoInfo (); |