13 lines
405 B
JavaScript
13 lines
405 B
JavaScript
class Videoinfo{
|
|
constructor(){
|
|
this.VideoinfoTypr()
|
|
localStorage.getItem()
|
|
}
|
|
VideoinfoTypr(){
|
|
$(".video_sp video").attr("src",JSON.parse(localStorage.getItem("videoArr")).video)
|
|
$(".content h1").text(JSON.parse(localStorage.getItem("videoArr")).title)
|
|
$(".content p").text(JSON.parse(localStorage.getItem("videoArr")).practice)
|
|
}
|
|
}
|
|
|
|
new Videoinfo() |