随笔分类 - jquery
摘要:$(function (){ var eleImg = document.querySelector('#image'); var store = { scale: 1 }; // 缩放处理 eleImg.addEventListener('touchstart', function (event)
阅读全文
摘要:var flag = 0; //标记是拖曳还是点击 $('.move').on({ mousedown:function(e) { flag = 0; }, mousemove:function(e) { flag = 1; }, mouseup:function(e) { if(flag == 0
阅读全文
摘要:<script> $(function (){ $('#content img').each(function() { var strA = "<a href='" + (this).wrapAll(s
阅读全文
摘要:.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
阅读全文
摘要:var url = 'http://www.cdlyh.com/down.php'; var xhr = new XMLHttpRequest(); xhr.open('GET', url, true); // 也可以使用POST方式,根据接口 xhr.responseType = "blob";
阅读全文
摘要:1 <script type="text/javascript"> 2 $(function(){ 3 /*进入子元素也触发*/ 4 /*$('#div1').mouseover(function() { 5 $(this).animate({marginTop: 50});//.stop() 6
阅读全文