摘要:
说明: w-count固定为数字部分的class textarea-active为超出最大输入文字个数报错信息的class html 部分: <div class="wrap wrapper"> <div class="tp-form-textarea tp-form-input-unname"> 阅读全文
posted @ 2020-02-20 19:07
duqianqian
阅读(796)
评论(0)
推荐(0)
摘要:
说明: html 部分: <div> <ul class="tab-nav-box tp-tab tp-tab01" data-content=".tab-content-box-3"> <a class="tab-item active" href="javascript:void(0)">tab 阅读全文
posted @ 2020-02-20 19:01
duqianqian
阅读(118)
评论(0)
推荐(0)
摘要:
使用说明: 元素上添加属性: data-role="popNew" data-relation="要弹出的元素class" html部分: <div class="wrap"> <h4 class="h4-txt" data-role="popNew" data-relation="tp-mess" 阅读全文
posted @ 2020-02-20 18:55
duqianqian
阅读(220)
评论(0)
推荐(0)
摘要:
/** * 垂直方向是否在可视区域内 */ function isInViewY(element, offset) { const pageYScroll = window.pageYOffset || document.documentElement.scrollTop; const pageHe 阅读全文
posted @ 2020-02-20 16:50
duqianqian
阅读(264)
评论(0)
推荐(0)
摘要:
分页获拉取下一页数据 function loadNextPageData(self, callball) { if (window.IntersectionObserver) { const options = { root: null, threshold: 0 } const handleInt 阅读全文
posted @ 2020-02-20 16:43
duqianqian
阅读(287)
评论(0)
推荐(0)
摘要:
设置cookie function cookie(key, value, options) { let days let time let result // A key and value were given. Set cookie. if (arguments.length > 1 && St 阅读全文
posted @ 2020-02-20 16:41
duqianqian
阅读(879)
评论(0)
推荐(0)
摘要:
获取url参数(直接取?后边的参数) function getUrlQuerys() { const queryStr = location.search.length ? location.search.substring(1) : ''; const queryArr = queryStr.le 阅读全文
posted @ 2020-02-20 16:39
duqianqian
阅读(328)
评论(0)
推荐(0)
摘要:
const getBrowser = () => { const ua = navigator.userAgent; return { trident: ua.indexOf('Trident') > -1, // IE内核 presto: ua.indexOf('Presto') > -1, // 阅读全文
posted @ 2020-02-20 16:20
duqianqian
阅读(183)
评论(0)
推荐(0)

浙公网安备 33010602011771号