application/ld+json 这个是什么 ?

    <script type="application/ld+json">
{
    "@context": "http://schema.org",
    "@type": "Website",
    "publisher": "有赞技术团队",
    "url": "https://tech.youzan.com/",
    "image": "https://tech.youzan.com/content/images/2015/06/2013-10-01-at-07-10-3811.jpg",
    "description": "Thoughts, stories and ideas."
}
    </script>

来源

view-source:https://tech.youzan.com/
<script src="/public/jquery.min.js?v=3b804fbdd1"></script> <script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML' async></script>
    
    <script type="text/javascript" src="/assets/js/dependencies.js?v=3b804fbdd1"></script>
    <script type="text/javascript" src="/assets/js/fix_word_count.js?v=3b804fbdd1"></script>
    <script type="text/javascript" src="/assets/js/script.js?v=3b804fbdd1"></script>
    <script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
    <script>
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "//hm.baidu.com/hm.js?c3c2803d353eb408fe1aaf342fc8da53";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();

    $(function() {
        var moubukexuedeurl = 'https://h5.youzan.com/v2/common/jsApi/weixinjsticket.jsonp'
        $.get(moubukexuedeurl, {
            kdt_id: 13387617,
            redirect_url: window.location.href,
            _: Math.random(),
        }, function(resp) {
            var nonceStr = resp.data.nonceStr;
            var timestamp = resp.data.timeStamp;
            var ticketSign = resp.data.ticketSign;
            var appId = resp.data.appId;
            // noncestr(随机字符串), 有效的jsapi_ticket, timestamp(时间戳), url
            wx.config({
                // debug: true,
                appId: appId, // 必填,公众号的唯一标识
                timestamp: timestamp, // 必填,生成签名的时间戳
                nonceStr: nonceStr, // 必填,生成签名的随机串
                signature: ticketSign,// 必填,签名,见附录1
                jsApiList: [
                    'onMenuShareTimeline',
                    'onMenuShareAppMessage',
                    'onMenuShareQQ',
                    'onMenuShareWeibo',
                    'onMenuShareQZone',
                ] // 必填,需要使用的JS接口列表,所有JS接口列表见附录2
            });
        }, 'jsonp');
        wx.ready(function(){
            var title = document.getElementsByTagName('title')[0].text;
            var titleEnd = '有赞技术团队';
            if (title != titleEnd) {
              title += ' - ' + titleEnd;
            }
            var shareObj = {
                title: title, // 分享标题
                desc: document.getElementsByName('twitter:description')[0].content, // 分享描述
                link: window.location.href, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
                imgUrl: window.post_bg_image ? window.post_bg_image : 'https://img.yzcdn.cn/public_files/2017/11/02/3ac8dd85d3a6c7cb8df5bfe198f0113a.png', // 分享图标
            }
            wx.onMenuShareTimeline(shareObj);
            wx.onMenuShareAppMessage(shareObj);
            wx.onMenuShareQZone(shareObj);
            wx.onMenuShareQQ(shareObj);
        });
    });
    </script>

请先后发表评论
  • 最新评论
  • 总共0条评论