problem description
[Vue warn]: option "el" can only be used during instance creation with the `new` keyword. vue.esm.js:592:7
[Vue warn]: Cannot find element: -sharpactionMovieFor
the environmental background of the problems and what methods you have tried
related codes
/ / Please paste the code text below (do not replace the code with pictures)
export default {
el:"-sharpactionMovieFor",
data() {
return {
ftpIP: this.GLOBAL.ftpIP,
server: this.GLOBAL.server,
actionMovieTmps: {},
artMovieTmps: {},
funnyMovieTmps: {},
ThrillerMovieTmps: {},
}
},........
<template>
<div class="containerBody">
<div class="panel panel-info moviepanel">
<div class="panel-body" style="width: 100%; padding-top: 5px;">
<div id="actionMovie" class="col-md-12 movie_container">
<div id="actionMovieFor">
<div v-for="(movie,index) in actionMovieTmps" :meta="movie" :key="index" v-on:click="getVideos(movie.id)" style="float:left;width:35%;height:75%;">
<p style="cursor: pointer;height:18;width:115px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;">{{movie.title}}
<p style="height:18;width:70%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="movie.description">{{movie.description}}
</div>
</div>
</div>
</div>
</div>
what result do you expect? What is the error message actually seen?
iterate through the data asynchronously and display it on the page