随笔分类 - jquery
摘要:联图网在线二维码生成接口// 获取支付二维码 getPayCode() { let para = { "MemberId": this.employeeId, "orderId": this.orderId, "payType": 7, }; this.adminApi(para,'获取支付二维码'
阅读全文
摘要:$.each()是对数组,json和dom结构等的遍历,说一下他的使用方法吧。 1、遍历一维数组 输出的结果为: 2、遍历二维数组 输出的结果为: 此时可以对输出的一维数组进行遍历 输出的结果为: 3、处理json 输出的结果为: 4、当二位数组中有json对象时 5、处理dom元素 以上就是$.e
阅读全文
摘要:<script type="text/javascript" src="jquery-1.8.3.min.js"></script> <style> .for{overflow: hidden; width: 100%; zoom: 1;} .for ul{list-style: none;} .f
阅读全文
摘要:<!DOCTYPE html> <html> <head> <meta charset=" utf-8"> <title>hide</title> <style type="text/css"> #hidden_enent{ width:200px; height:150px; background
阅读全文
摘要:<html> <head runat="server"> <meta charset="utf-8" /><title>无标题页</title> <script type="text/javascript" src="jquery-1.8.3.min.js" ></script></head> <b
阅读全文
摘要:<!DOCTYPE html><html> <head> <title>Jquery复选框练习</title> <!-- 引入jQuery,引入你自己的jQuery文件 --> <script type="text/javascript" src="../scripts/jquery-1.7.2.j
阅读全文
摘要:<input type="text" value="" placeholder="请输入您的姓名" onblur="this.placeholder=(this.placeholder=='')?'请输入您的姓名':this.placeholder" onfocus="this.placeholde
阅读全文
摘要:<html><head><script type="text/javascript" src="/jquery/jquery.js"></script><script type="text/javascript">$(document).ready(function(){ $("button").c
阅读全文
摘要:jquery获取自定义属性的值 //方法 1 <div id="text" value="黑哒哒的盟友"><div> jQuery取值: $("#text").attr("value"); //方法 2 <div id="text" value="123" data_obj="黑哒哒的盟友"><di
阅读全文
摘要:$("#top_op").click(function(){ var t = $(window).scrollTop(); $('body,html').animate({'scrollTop':t+200},100,stop); //stop可以设置 })
阅读全文
摘要:<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <script src="jquery-1.8.3.min.js"></script> <style> .show_div { background: red; c
阅读全文

浙公网安备 33010602011771号