随笔分类 -  jquery

摘要:$(function (){ var eleImg = document.querySelector('#image'); var store = { scale: 1 }; // 缩放处理 eleImg.addEventListener('touchstart', function (event) 阅读全文
posted @ 2022-12-06 10:24 赵瑛 阅读(692) 评论(0) 推荐(0)
摘要:var flag = 0; //标记是拖曳还是点击 $('.move').on({ mousedown:function(e) { flag = 0; }, mousemove:function(e) { flag = 1; }, mouseup:function(e) { if(flag == 0 阅读全文
posted @ 2022-07-20 09:46 赵瑛 阅读(173) 评论(0) 推荐(0)
摘要:<script> $(function (){ $('#content img').each(function() { var strA = "<a href='" + $(this).attr('src') + "' target='_blank'></a>"; $(this).wrapAll(s 阅读全文
posted @ 2022-01-14 22:41 赵瑛 阅读(165) 评论(0) 推荐(0)
摘要:.search_content_list {width:374px;display: none;} .search_content_list ul{border:#ddd 1px solid;border-top:none;padding:5px} .search_content_list ul l 阅读全文
posted @ 2021-11-10 09:15 赵瑛 阅读(382) 评论(0) 推荐(0)
摘要:var url = 'http://www.cdlyh.com/down.php'; var xhr = new XMLHttpRequest(); xhr.open('GET', url, true); // 也可以使用POST方式,根据接口 xhr.responseType = "blob"; 阅读全文
posted @ 2021-08-21 10:24 赵瑛 阅读(201) 评论(0) 推荐(0)
摘要:1 <script type="text/javascript"> 2 $(function(){ 3 /*进入子元素也触发*/ 4 /*$('#div1').mouseover(function() { 5 $(this).animate({marginTop: 50});//.stop() 6 阅读全文
posted @ 2021-08-06 14:52 赵瑛 阅读(404) 评论(0) 推荐(0)

版权所有 © 2025 沅来是澧

如果有程序开发、网站建设等需求的请联系我,QQ:47419233