![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
网络语言基础
jdyy1
js
展开
-
防抖 fn函数 delay时差
// 防抖 fn函数 delay时差 debounce: function (fn, delay) { var _this = this; var timer = null; return function () { clearTimeout(timer); timer = setTimeout(function () { fn.apply(_this); }, delay); }; }, ...原创 2021-09-03 14:56:14 · 290 阅读 · 0 评论 -
右键自定义跳转
$('.list').on('click', '.share', function () { var id = $(this).parent().parent().attr('data-id'); var url =location.href+ '/rewardTools/rewardDetail?template_id=' + id; console.log('分享。。', url); if (url) {..原创 2021-08-20 11:41:59 · 219 阅读 · 0 评论 -
js 复制功能,
$('.list').on('click', '.share', function () { var id = $(this).parent().parent().attr('data-id'); var url =location.href+ '/rewardTools/rewardDetail?template_id=' + id; console.log('分享。。', url); if (url) {..原创 2021-08-19 16:40:10 · 165 阅读 · 0 评论 -
按钮点击弹起效果
@keyframes myAnimation { 0% { transform: scale(1); /*开始为原始大小*/ } 33% { transform: scale(0.8); /*放大1.1倍*/ } 67% { transform: scale(1); }} $('.android,.ios').on("click", function() { .原创 2021-08-18 09:55:22 · 105 阅读 · 0 评论 -
如何用通俗易懂的语言解释脚本(script)是什么?(来源知乎)
作者:滇狐链接:https://www.zhihu.com/question/19901542/answer/13302875来源:知乎著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。感谢邀请。在计算机领域里,“脚本”是个非常含糊的概念,在不同上下文下可以有非常不一样的定义。这个问题的上下文是“前端开发”,因此我就仅仅针对前端开发里涉及到的“脚本”来转载 2017-08-28 16:33:47 · 5775 阅读 · 0 评论