网页域名:https://lottery.zhihemedia.com/jparking/chests
let shareData = {
title: "开宝箱,抽iphone X!",
desc: "霸王宝箱打开,里面有个iphone X手机!",
link: PATH + '/wechat/redirect?redirectUrl=' + encodeURIComponent(StartUrl + '&shareId=' + ShareId),
imgUrl: 'https://statics.zhihemedia.com/lottery/res/web/internationalExhibition/images/index.jpg',
success: function () {
ajaxData(PATH + '/jparking/' + sn + '/share').then(function (res) {
if (res.success) {
alert('分享成功');
}
});
}
};
图片imgUrl: 'https://statics.zhihemedia.com/lottery/res/web/internationalExhibition/images/index.jpg',

改为相同域名后:
图片imgUrl: 'https://lottery.zhihemedia.com/lottery/res/web/internationalExhibition/images/index.jpg',

抽奖活动分享代码解析
本文解析了一个抽奖活动的网页代码,展示了如何通过修改图片源地址来优化页面展示效果。涉及的知识点包括JavaScript对象属性设置、图片资源链接调整及HTTPS统一资源定位符的应用。
1万+

被折叠的 条评论
为什么被折叠?



