use webvideoctrl+vue for video surveillance. Webvideoctrl.js is a pure js file provided by Haikangwei"s web surveillance video component. I import it in the corresponding vue file, and I can see that it is referenced in source, but the console has been reporting errors of
Uncaught ReferenceError: WebVideoCtrl is not defined
. Other js files and css files referenced in the component can be referenced correctly
<script>
export default{
// else {
// this.$message({message:"",type:"error",showClose:true});
// }
// this.search(obj,function(obj){
// for(var key in obj){
// alert(obj[key].ipAddr);
// }
// })
}
</script>
vueDeleting local variable in strict mode:
jqueryvue$demo.jsvar jq=jQuery.noConflict();alertWevVideoCtrl
webVideoCtrldemowebVideoCtr.jsdemo