Home > front end >  About spotlight. Js - defined title suggests undefined?
About spotlight. Js - defined title suggests undefined?

Time:09-19


 & lt; The script type="text/javascript" & gt; 
$(' qr - BTN '). Click (function () {
Var myGallery=[{
Title: "qr code" article,
Description: "qr code" article,
SRC: "http://qr.liantu.com/api.php? W=200 text=& lt; ? PHP the_permalink (); ?>"
}];
The console. The log (myGallery);
Spotlight. The show (myGallery);
});
</script>

Why has set the title, undefined

https://cszj.wang/archives/589.html can go here, point to see the effect

CodePudding user response:

This is a json string, can't call directly, to use myGallery [0]. Title

Your js compressed, compressed js is in the following location:
  • Related