
<script type="text/javascript">
$('.qr-btn').click(function (){
var myGallery = [{
title: "文章二維碼",
description: "文章二維碼",
src: "http://qr.liantu.com/api.php?w=200text=<?php the_permalink(); ?>"
}];
console.log(myGallery);
Spotlight.show(myGallery);
});
</script>
已設定title,為什么undefined
https://cszj.wang/archives/589.html可以去這里,點
看效果
uj5u.com熱心網友回復:
這是json串,不能直接就呼叫,要使用myGallery[0].title你的js有壓縮,壓縮后的js是在下面位置:
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/51638.html
標籤:HTML(CSS)
上一篇:智商不在線求問知識了
