01 2018 档案
摘要:引入jquery.js,复制以下代码,即可运行。 <style type="text/css"> .slide { position: relative; height: 200; lightyellow; } .slide .inner { position: absolute; left: 0;
阅读全文
摘要:$(function(){ var url = window.location.toString();//进这个页面的url var id = url.split(“#”)[1];//url例如: www.baidu.com#maodian(这个是你锚点的位置) if(id){ var t = $(
阅读全文
摘要://点击文本框复制其内容到剪贴板上方法 function copyToClipboard(txt) { if (window.clipboardData) { window.clipboardData.clearData(); window.clipboardData.setData("Text",
阅读全文
摘要:<input id="password" value="" type="password" autocomplete="off" name="password" onfocus="this.type='password'" datatype="*"> window.load = function()
阅读全文
摘要:jQuery('#select2 option:selected').text();
阅读全文
摘要:<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:;" onclick="location.replace(location.href);" title="刷新"
阅读全文
摘要:var data=$("form").serializeArray();
阅读全文
摘要:<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title></head><body><!-- <input type="text" oninput="yz(this)"> --><input ty
阅读全文
摘要:<input type="text" name="data" id="cardNumber" onkeyup="value=value.replace(/[^\d]/g,'')" placeholder="请输入卡号"/>
阅读全文
摘要:<input type="text" name="data" id="name" onkeyup="value=value.replace(/[^\u4E00-\u9FA5]/g,'')" placeholder="请输入姓名"/>
阅读全文
摘要:<html> <head> <title>LIGHTBOX EXAMPLE</title> <style> .black_overlay{ display: none; position: absolute; top: 0%; left: 0%; width: 100%; height: 100%;
阅读全文