- 博客(9)
- 收藏
- 关注
原创 H5配置分享
配置左上角分享好友//配置分享getShare(url, vipid) {let pid = parseInt(vipid) + parseInt(10000000) // idwx.ready(function () {let urla = url + ‘/hpl/weixin/index/naturalpower/share_id/’ + vipid + ‘/pid/’ + pid + ‘/’wx.onMenuShareAppMessage({title: “自然之力答题活动~”, /
2021-02-26 14:26:06 154
原创 H5跳转小程序
标签创建一个接龙<wx-open-launch-weappid=“launch-btn”username=“gh_f1eeefa0f69d”path=“pages/index/index.html”@launch=“handleLaunchFn”@error=“handleErrorFn”style=“width: 100%; height: 100%; position: absolute; top: 0; left: 0;”> 跳转小程序
2021-02-26 14:14:35 201
原创 layui手机号点击
{ field: 'address_mobile', title: '电话', align: 'center', width: 120, templet: function (d) { return '<div style="width:100%" onclick="showmobfun(event,' + d.address_mobile + ').
2021-02-26 14:11:57 188
原创 js插件双击图片放大
viewer 插件jsnew Viewer(document.getElementById('clid'), { zIndex: 3000 }); function imgboxin(i, j) { let img = 'viewerimgBox' + i + j new Viewer(document.getElementById(img), {
2021-02-26 14:10:28 330
原创 js前端搜索layui
<div class="box1"></div>js代码///表格搜索/$(’.box1’).on(‘input’, ‘#table-search-input’, function (e) {isSearchInput = trueif ((!e.target.isNeedPrevent)) reloadTable(isFrontSearch)}).on(‘compositionstart’, ‘#table-search-input’, function (e) .
2021-02-26 14:07:13 89
原创 js前端导出表格
导出表格样式拼接var tableCols = “”;var tableColsx = “”;var tableColsy = “”;表头tableCols = “”;tableCols += “各小组完成情况”;tableColsx += " " + ‘大组’ + “”tableColsx += " " + ‘销售组’ + “”tableColsx += " " + ‘人数’ + “”tableColsx += " " + ‘月目标’ + “”tableColsx += " " +
2021-02-26 14:04:43 128
原创 e-chart全选反选
html option1:{},e-chart 自适应this.option1 = option myChart.setOption(this.option1, true); window.onresize = () => { myChart.resize(); };js代码// 全选反选pitchOn(index) {this.btnindex = i
2021-02-26 14:00:40 473
原创 精准获取链接后参数(/)
geturl() { const url = window.location.href; if (url .indexOf('type') != -1) { var type = localurl.split('type=')[1] } }
2020-12-05 11:35:07 60
原创 h5页面rem计算自适应
$(document).ready(function () {document.documentElement.style.fontSize = 16 * document.documentElement.clientWidth / 375 + ‘px’})
2020-12-05 11:31:18 169
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人