JavaScript
公众号iOS分享失败 标签描述

公众号分享的问题真多 url使用下面方式获取需要使用encodeURIComponent转换 leturl1=encodeURIComponent(window.location.href.split('')[0]);  附上校验微信和ios的处理方式 letua=navigator.userAgent.toLowerCase(); letisWeixin=ua.indexOf('micromessenger')!-1; leturl1; if(isWeixin){ letisiOS=!!ua.match(/\(i[^;]+;(U;)?CPU.+MacOSX/);//ios终...