随笔分类 - JavaScript
摘要:联图网在线二维码生成接口// 获取支付二维码 getPayCode() { let para = { "MemberId": this.employeeId, "orderId": this.orderId, "payType": 7, }; this.adminApi(para,'获取支付二维码'
阅读全文
摘要:<!DOCTYPE html><html> <head> <meta charset="utf-8" /> <title>不间断图片滚动在线演示 DIVCSS5</title> <script src="jquery-1.8.3.min.js" type="text/javascript" ></s
阅读全文
摘要:<script src="js/jquery-2.2.3.min.js"></script> <script> var browser = { versions: function() { var u = navigator.userAgent, app = navigator.appVersion
阅读全文
摘要:<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
阅读全文
摘要:1. 长度限制 <p>1. 长度限制</p><form name=a onsubmit="return test()"> <textarea name="b" cols="40" rows="6" placeholder="不能超过50个字符!"></textarea> <br /> <input
阅读全文
摘要:用户名: 密码: 确认密码: function checkForm(){ // 校验用户名: // 获得用户名文本框的值: var username = document.getElementById("username").value; if(username == null || username == ''){ aler...
阅读全文
摘要:<!DOCTYPE html><html><head><meta charset="utf-8"><title>安心牧羊人</title></head><body><p>全局变量计数。</p><button type="button" onclick="myFunction1()">-</butto
阅读全文
摘要:闭包(closure)是javascript的一大难点,也是它的特色。很多高级应用都要依靠闭包来实现。 1、变量作用域 要理解闭包,首先要理解javascript的特殊的变量作用域。 变量的作用域无非就两种:全局变量和局部变量。 javascript语言的特别之处就在于:函数内部可以直接读取全局变量
阅读全文
摘要:<!DOCTYPE html><html> <head> <meta charset="{CHARSET}"> <title></title> <script src="jquery.1.8.3.html"></script> <style> .section{ height:200px; widt
阅读全文
摘要:<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <input type="button" onclick="a();b();" value="ab"/> 可以调用多个方法执行 </b
阅读全文
摘要:<!DOCTYPE HTML><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>获得星期</title><script type="text/javascript"> var
阅读全文
摘要:<!DOCTYPE html><html> <head> <title> 事件</title> <script type="text/javascript"> function count(){ var oTxt1 = document.getElementById("txt1").value; v
阅读全文
摘要:<style> *{ margin:0; padding:0; list-style:none;} body{ font:normal 14px/24px 'MicroSoft YaHei';} .cotrs{ width:960px; height:32px; line-height:32px;
阅读全文
摘要:<div class="qie"> <! 切换容器--> <div class="tit"><! 切换标题--> <h3 onMouseOver="set('qie',1,5)" id="qie1" class="hover">标题1</h3> <h3 onMouseOver="set('qie',
阅读全文
摘要:jquery改变背景颜色<html><head><script type="text/javascript" src="/jquery/jquery.js"></script><script type="text/javascript">$(document).ready(function(){ $
阅读全文
摘要:vue-js <select @change="ps_onchange($event)"> <option value="" selected>请选择区域</option> <option value=""> 默认区域</option> <option value="1" >2</option> <
阅读全文
摘要:1. <textarea id="area" name="ss" placeholder="请输入文本内容"></textarea> 2. <p><span id="text-count">20</span>/20</p> 3. <script type="text/javascript"> 4.
阅读全文
摘要:<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript" src="jquery.js"></script>//需要自己引入jquery库 </head> <
阅读全文

浙公网安备 33010602011771号