jQuery常用案例总结
模态对话框
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>test</title>
<style>
.field{
z-index: 1;
}
.cover{
display: none;
z-index: 2;
position: fixed;
top:0;
right:0;
bottom: 0;
left:0;
background-color: #b6b0ad;
opacity: 0.8;
}
.input{
display: none;
z-index: 3;
width: 300px;
height:200px;
background-color: #fff;
border-radius: 20px;
position: fixed;
top:50%;
left:50%;
margin-left: -150px;
margin-top: -100px;
-webkit-box-shadow: 0 0 10px #0CC;
}
</style>
</head>
<body>
<div>
<fieldset id="1" class="field">
<legend>用户信息</legend>
<p id="username">用户名:</p>
<p id="usergender">性别:</p>
</fieldset>
<button type="button" onclick="show()">输入用户信息</button>
</div>
<div id="2" class="cover"> </div>
<div id="3" class="input">
<!--<form>-->
<div style="text-align: center;">
姓名:<input id = "name" type="text" />
</div>
<br />
<div style="text-align: center;">
性别:<input type="radio" name="gender" value="男" checked />男
<input type="radio" name="gender" value="女"/>女 </div>
<br />
<div style="text-align: center;">
<input type="button" onclick="submit()" value="提交" />
</div>
<!--</form>-->
</div> <script>
function show() {
var cover = document.getElementById("2");
cover.style.display = "block";
var input = document.getElementById("3");
input.style.display = "block";
}
function submit() { var cover = document.getElementById("2");
cover.style.display = "none";
var input = document.getElementById("3");
input.style.display = "none"; var name = document.getElementById("name");
var text = name.value;
var p1 = document.getElementById("username");
p1.innerHTML="用户姓名:"+text; var mbtype = document.getElementsByName("gender");
var gender;
for(var i=0;i<mbtype.length;i++){
if (mbtype.item(i).checked) {
gender = mbtype.item(i).getAttribute("value");
break;
}
}
var p2 = document.getElementById("usergender");
p2.innerHTML="用户姓名:"+gender;
} </script>
</body>
</html>
DOM版本
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>模态对话框</title>
<style>
.hide{
display: none !important;
/*!important;优先级最高*/
}
.shade{
position: fixed;
top:0;
bottom: 0;
left: 0;
right: 0;
/*background-color: black;*/
/*opacity: 0.6;透明度*/
background-color: rgba(0,0,0,.6);
z-index: 1000;
}
.modal {
height: 200px;
width: 400px;
background-color: white;
position: fixed;
top: 50%;
left: 50%;
margin-left: -200px;
margin-top: -100px;
z-index: 1001;
}
</style>
</head>
<body>
<div style="height: 2000px;background-color: #dddddd;">
<input type="button" value="发送" onclick="ShowModel();"/>
</div>
<div id="shade" class="shade hide"></div>
<div id="modal" class="modal hide">
<a href="javascript:void(0);" onclick="HideModal();">取消</a>
<!--href如果等于JavaScript:void(0)的话什么都不会操作-->
</div>
<script type="text/javascript">
function ShowModel() {
var t1 = document.getElementById('shade');
var t2 = document.getElementById('modal');
t1.classList.remove('hide');
t2.classList.remove('hide');
}
function HideModal() {
var t1 = document.getElementById('shade');
var t2 = document.getElementById('modal');
t1.classList.add('hide');
t2.classList.add('hide');
}
window.onkeydown = function (event) {
// console.log(event);
if(event.keyCode == 27){
// 如果键盘按下ESC同样退出
HideModal();
}
}
</script>
</body>
</html>
jQuery版本
自定义图标小尖角
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>使用插件</title>
<!--<link rel="stylesheet" href="plugins/Font-Awesome-master/css/font-awesome.css"/>-->
<style>
.icon{
display: inline-block;
border-top:20px solid red;
border-right: 20px solid green;
border-bottom: 20px solid transparent;
border-left:20px solid transparent ;
}
</style>
</head>
<body>
<!--<i class="fa fa-bug" aria-hidden="true"></i>-->
<div class="icon"></div>
<a href="Dy15/plugins/Font-Awesome-master/css/font-awesome.css">
</body>
</html>
自定义插件
登录相关
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
.icon-name{
background-image: url("../img/i_name.jpg");
height: 16px;
width: 16px;
display: inline-block;
}
.icon-pwd{
background-image: url("../img/i_pwd.jpg");
display: inline-block;
}
</style>
</head>
<body>
<div style="width: 200px;position: relative">
<input style="width: 180px;padding-right:20px "/>
<span class="icon-name" style="position: absolute;top: 2px;right: 0"></span>
</div> </body>
</html>
登录框设计
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>登录</title>
</head>
<body>
<form action="http://www.baidu.com">
<input type="text" id="username"/>
<input type="submit" value="提交" onclick="return SubmitForm();"/>
</form>
<script>
function SubmitForm() {
var user = document.getElementById('username');
if(user.value.length > 0){
// 可以提交
return true;
}else{
// 不可提交,提示错误
alert('用户名输入不能为空!');
return false;
}
}
</script>
</body>
</html>
DOM简单登录验证
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>登录</title>
</head>
<body>
<!--onfocus 获取鼠标焦点-->
<!--onblur 失去鼠标焦点-->
<input id="i1" type="text" value="请输入用户名:" onfocus="Focus();" onblur="Blur();"/><br>
<input id="i2" type="text" value="请输入密码:"/>
<script type="text/javascript">
function Focus() {
// console.log('Focus');
// 获取标签,清空内容
var tag = document.getElementById('i1');
if(tag.value == "请输入用户名:"){
tag.value = "";
}
}
function Blur() {
// console.log('blur');
var tag = document.getElementById('i1');
var val = tag.value;
if(val.trim().length == 0){
tag.value = "请输入用户名:"
}
} </script>
</body>
</html>
登录框清除默认内容
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<style>
.item{
width: 250px;
height: 60px;
position: relative;
}
.item input{
width: 200px;
}
.item span{
position: absolute;
top: 20px;
left: 0px;
font-size: 8px;
background-color: indianred;
color: white;
display: inline-block;
width: 200px;
}
</style>
</head>
<body> <div>
<form id="form1">
<div class="item">
<input class="c1" type="text" name="username" label="用户名" require="true" min-len="6"/>
</div>
<div class="item">
<input class="c1" type="password" name="pwd" label="密码"/>
</div>
<div class="item">
<input class="c1" type="text" name="phone" label="手机" require="true" phone="true"/>
</div>
<input type="submit" value="提交" />
</form> </div> <script src="jquery-1.12.4.js"></script>
<script src="commons.js"></script>
<script>
$(function(){
$.valid('#form1');
}); </script>
</body>
</html>
JS表单验证.html
/**
* Created by alex on 2016/8/28.
*/
(function(jq){ function ErrorMessage(inp,message){
var tag = document.createElement('span');
tag.innerText = message;
inp.after(tag);
} jq.extend({
valid:function(form){
// #form1 $('#form1')
jq(form).find(':submit').click(function(){ jq(form).find('.item span').remove(); var flag = true;
jq(form).find(':text,:password').each(function(){ var require = $(this).attr('require');
if(require){
var val = $(this).val(); if(val.length<=0){
var label = $(this).attr('label');
ErrorMessage($(this),label + "不能为空");
flag = false;
return false;
} var minLen = $(this).attr('min-len');
if(minLen){
var minLenInt = parseInt(minLen);
if(val.length<minLenInt){
var label = $(this).attr('label');
ErrorMessage($(this),label + "长度最小为"+ minLen);
flag = false;
return false;
}
//json.stringify()
//JSON.parse()
} var phone = $(this).attr('phone');
if(phone){
// 用户输入内容是否是手机格式
var phoneReg = /^1[3|5|8]\d{9}$/;
if(!phoneReg.test(val)){
var label = $(this).attr('label');
ErrorMessage($(this),label + "格式错误");
flag = false;
return false;
}
} // 1、html自定义标签属性
// 增加验证规则+错误提示 }
// 每一个元素执行次匿名函数
// this
//console.log(this,$(this));
/*
var val = $(this).val();
if(val.length<=0){
var label = $(this).attr('label');
var tag = document.createElement('span');
tag.innerText = label + "不能为空";
$(this).after(tag);
flag = false;
return false;
}
*/
}); return flag;
});
}
});
})(jQuery);
模版commons.js
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>初级表单验证</title>
<style>
.item{
width: 250px;
height: 60px;
position: relative;
}
.item input{
width: 200px;
}
.item span{
position: absolute;
top: 20px;
left: 0px;
font-size: 8px;
background-color: indianred;
color: white;
display: inline-block;
width: 200px;
}
</style>
</head>
<body>
<div>
<form>
<div class="item">
<input class="c1" type="text" name="username" label="用户名"/>
<!--<span>用户名不能为空</span>-->
</div>
<div class="item">
<input class="c1" type="password" name="pwd" label="密码"/>
<!--<span>密码不能为空</span>-->
</div>
<input type="submit" value="提交" onclick="return CheckValid();" />
</form>
</div> <script src="jquery-1.12.4.js"></script>
<script>
function CheckValid() {
//找到form标签下的所有需要验证的标签
//$('from.c1')
//$('from input[type="text"],input[type="password"]')
//循环所有需要验证的标签,获取内容
$('form .item span').remove();
//错误信息清空 var flag = true; $('form .c1').each(function () {
//each循环元素执行一次匿名函数
//this
//console.log(this,$(this))
var val = $(this).val();
if(val.length<=0){
var label = $(this).attr('label'); //获取自定义属性
var tag = document.createElement('span');
tag.innerText = label + "不能为空";
$(this).after(tag); //在当前标签后加入新的span标签
flag = false;
}
});
return flag;
}
</script>
</body>
</html>
DOM版表单验证
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>初级表单验证</title>
<style>
.item{
width: 250px;
height: 60px;
position: relative;
}
.item input{
width: 200px;
}
.item span{
position: absolute;
top: 20px;
left: 0px;
font-size: 8px;
background-color: indianred;
color: white;
display: inline-block;
width: 200px;
}
</style>
</head>
<body>
<div>
<form>
<div class="item">
<input class="c1" type="text" name="username" label="用户名"/>
</div>
<div class="item">
<input class="c1" type="password" name="pwd" label="密码"/>
</div>
<input type="submit" value="提交" />
</form>
</div> <script src="jquery-1.12.4.js"></script>
<script>
$(function () {
//当夜幕框架加载完后,自动执行
BindCheckVaild();
}); function BindCheckVaild() {
$('form :submit').click(function () {
//属性选择器
$('form .item span').remove();
//错误信息清空 var flag = true;
//只要点击submmit按钮,执行此处内容,找到form标签下的所有需要验证的标签 $('form .c1').each(function () {
//each循环元素执行一次匿名函数
//this
//console.log(this,$(this))
var val = $(this).val();
if(val.length<=0){
var label = $(this).attr('label'); //获取自定义属性
var tag = document.createElement('span');
tag.innerText = label + "不能为空";
$(this).after(tag); //在当前标签后加入新的span标签
flag = false;
return false;
}
});
return flag;
});
}
</script>
</body>
</html>
jQuery初级版表单验证
后台管理滚动条
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
body{
margin: 0;
}
.pg-header{
height:48px;
background-color: #012a62;
}
.pg-body .body-menu{
position: absolute;
top: 48px;
left: 0;
bottom: 0;
width: 200px;
background-color: #e67e4a;
}
.pg-body .body-content{
position: absolute;
top: 48px;
left: 220px;
right: 0;
bottom: 0;
background-color: green;
overflow: auto;
/*<overflow添加滚动条>*/
}
</style>
</head>
<body>
<div class="pg-header"></div>
<div class="pg-body">
<div class="body-menu"></div>
<div class="body-content">
sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>
sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>
sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>
sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>
sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>
sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>
sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>
sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>
sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/> </div>
</div>
</body>
</html>
使用overflow只让页面内容滚动
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
body{
margin: 0;
}
.pg-header{
height:48px;
background-color: #012a62;
}
.pg-body .body-menu{
position: absolute;
top: 48px;
left: 0;
bottom: 0;
width: 200px;
/*bottom: 0;*/
background-color: #e67e4a;
}
.pg-body .body-content{
position: absolute;
top: 48px;
left: 220px;
right: 0;
background-color: green;
}
</style>
</head>
<body>
<div class="pg-header"></div>
<div class="pg-body">
<div class="body-menu"></div>
<div class="body-content">
sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>
sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>
sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>
sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>
sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>
sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>
sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>
sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>
sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/>sdfasdfa<br/> </div>
</div>
</body>
</html>
滚动条滚动页面整体移动
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>返回顶部</title>
<style>
.back{
position: fixed;
right: 20px;
bottom: 20px;
color: green;
}
.hide{
display: none;
}
</style>
</head>
<body onscroll="BodyScroll();">
<!--onscroll获取每次鼠标滚动操作-->
<div style="height: 2000px;background-color: #dddddd;"></div>
<div id="back" class="back hide" onclick="BackTop();">返回顶部</div>
<script>
function BackTop() {
document.body.scrollTop = 0;
}
function BodyScroll() {
var s = document.body.scrollTop;
// 获取滚轮距离顶部的大小
var t = document.getElementById('back');
if(s >= 300){
t.classList.remove('hide');
}else{
t.classList.add('hide');
}
}
</script>
</body>
</html>
返回顶部
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>左侧菜单</title>
<style>
.hide{
display: none;
}
.menu{
width: 200px;
height: 600px;
border: 1px solid #dddddd;
overflow: auto;
}
.menu .item .title{
height: 40px;
line-height: 40px;
background-color: #2459a2;
color: white;
}
</style>
</head>
<body>
<div class="menu">
<div class="item">
<div class="title" onclick="ShowMenu(this);">菜单一</div>
<div class="body">
<p>内容一</p>
<p>内容一</p>
<p>内容一</p>
<p>内容一</p>
<p>内容一</p>
</div> </div>
<div class="item"> <div class="title" onclick="ShowMenu(this);">菜单二</div>
<div class="body hide">
<p>内容二</p>
<p>内容二</p>
<p>内容二</p>
<p>内容二</p>
<p>内容二</p>
<p>内容二</p>
</div>
</div>
<div class="item">
<div class="title" onclick="ShowMenu(this);">菜单三</div>
<div class="body hide">
<p>内容三</p>
<p>内容三</p>
<p>内容三</p>
<p>内容三</p>
<p>内容三</p>
<p>内容三</p>
</div> </div>
</div>
<script src="jquery-1.12.4.js"></script>
<script>
function ShowMenu(ths) {
// console.log(ths); //Dom中的标签对象
// $(ths) //Dom标签对象转换成jQuery标签对象
// $(ths)[0] //jQuery标签对象转换成Dom标签对象
$(ths).next().removeClass('hide');
$(ths).parent().siblings().find('.body').addClass('hide');
}
</script>
</body>
</html>
简单版左侧菜单
Form表单
1、编写HTML代码
index.html
显示效果:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWQAAACpCAIAAACTeNCpAAATC0lEQVR4nO2dO5bjOg6GvZ2KHMwWegWVayG1BK2h1nDP9TkdVjapU2eOKnPoaI4zTSBRBEnwpQcF0v+XdFtFSRAF/AIpmzj9DwAAEjj9FwAAEjgNAACQAMQCAJAExAIAkATEAgCQBMTi3fkLNuXo+7kjEIt35+jgao2j7+eOQCzenaODqzWOvp87ArF4d44OrtY4+n7uCMTi3Tk6uFrj6Pu5I16x+Ece8o2Ub+E/jpFHB1drrAxIyYTE4lcSrpdLM1K+hb+ckUcHV2usDEjJQCw2Q76FvxCL/VkZkJKBWGyGfAt/IRb7szIgJQOx2Az5Fv5CLPZnZUBKBmKxGfIt/M0Ui/vz9bjSDdfHa3jeuQ+LuT8H+yjXx2uwThzeIYBj5P05HzvxA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vloKIXy3E6lix056sRVrQNyhdWA8RCs2lmIQVXLG7mwoCc9SXboHxhNUAsNO8hFhQR5QB4scgpR4jyhWWQKRbzCPTclylfOAyD7VzcKHg897m/qYU6lVjQEoLcwQysJXXt02VXKMzoWMuM48uReSxE+UKJyBSLYTigfCE9CV3Bft6sPJ6kE8a0hR6WByZAzHIXzIh6XvnfrlbkrVCY2bHKitjUZKk2vIWunIfEIq89xGIZcsWifPlCK6+18xduji5cu8ONZn7gvrJCYZBQYIyXGdac/duwFqJ8oUAEiwWtvVWkfKEhFlwkuiOTXLFIqGsyELfeWSzSEpS92/BvQ4zSLlrC2TmI3PYQi2VIFgt1e0uVLzQzC7/vzzMXyzILvmwh69a7i4VVMIxl7zbcy12UL5SIaLEYypYvJAFolwmbhIbG6rJHv1N/jMy3ut8U2FssRMxxRt6G2GkDIxAoX1gG4b8NKVe+0JmGc+sIXjr9gsWpVWh8sA5mZg70vYczQUc2Jh8+q2Pp2c2u0lbu3yZkoT4ItyPKFx4HfnXaOPI7Fs5WCxCLxpHfsXC2WoBYNI78joWz1QLEonHkdyycrRYgFo0jv2PhbLUAsWgc+R0LZ6sFlC9sH/kde5SzQSyyQEUy8L5ALLKAWID3BWKRBS8WfwB4DwrHW9XwYgEAABYQCwBAEhALAEASEAsAQBIQCwBAEhALAEASEAsAQBIQCwBAEhALAEASEAsAQBL/B0TRYaRuTpHOAAAAAElFTkSuQmCC" alt="" />
2、功能实现
导入jQuery
<script type="text/javascript" src="js/jquery-1.8.2.min.js"></script>
<!--导入自定义的jQuery脚本-->
<script type="text/javascript" src="js/Form_menu.js"></script>
注意:自定义的jQuery是否可以放在原生的jQuery上面呢?不可以:咱们自己写的jQuery调用的也是原生的jQuery,如果原生的jQuery没有加载,咱们自定义的也是不可以用的。
编写CSS代码
首先我们要给,右上角的“进入编辑模式”添加一个事件,我们可以通过这个事件给“进入编辑模式”新增一个属性,或者样式,通过这个属性和样式,来判断是否进入了编辑模式,在上一篇我自己写的是使用的属性,这次我们来使用样式来判断。
在css文件里新增两个样式:
/*定义编辑按钮的样式*/
.edit-mode{
background-color: #b3b3b3;
padding: 8px;
text-decoration: none;
color: white;
}
/*定义点击编辑按钮后的样式*/
.editing{
background-color: #f0ad4e;
}
增加自定义的js文件实现各个功能
/**
* Created by luo_t on 3/1/2016.
*/ STATUS = [
{'id': 1, 'text': "在线"},
{'id': 2, 'text': "下线"}
]; BUSINESS = [
{'id': 1, 'text': "车上会"},
{'id': 2, 'text': "二手车"},
{'id': 3, 'text': "大保健"}
]; $(function(){
// checkbox默认事件优先,然后执行自定义的事件
$('#tb1').find(':checkbox').click(function(){
var tr = $(this).parent().parent();
if($("#edit_mode").hasClass('editing')){
if($(this).prop('checked')){
// 当前行进入编辑状态
RowIntoEditMode(tr);
}else{
// 当前行退出编辑状态
RowOutEditMode(tr);
}
}
});
}); //退出编辑模式,函数(被下面掉用)
function RowOutEditMode(tr){
tr.children().each(function(){ //tr下面的自标签
var td = $(this);
if(td.attr('edit') == 'true'){ //如果在编辑状态
var inp = td.children(':first');//获取td里面的第一个元素
var input_value = inp.val();//取出里面的值
td.text(input_value);//并复制给td标签
}
});
} //进入编辑模式,函数(被下面掉用)
function RowIntoEditMode(tr){
tr.children().each(function(){ //获取tr下面的所有td,循环
var td = $(this);
if(td.attr('edit') == 'true'){ //判断是否为可编辑状态
if(td.attr('edit-type') == "select"){ //判断是否为input的select标签
var all_values = window[td.attr('global-key')]; //获取全局变量判断获取当前的项目类型,
var select_val = td.attr('select-val'); //获取当前类型的下的值
select_val = parseInt(select_val); //把字符串转换为数字
var options = "";//定义一个空值,把标签循环加上。
$.each(all_values, function(index, value){ //循环这个项目类型
if(select_val == value.id){ //判断,当前选中的值和项目类型的ID的值是否相等,如果相等使用这个值
options += "<option selected='selected'>" + value.text + "</option>";
}else{//没有,使用默认的项目类型
options += "<option>" + value.text + "</option>";
}
});
//当input标签,类型为select的标签发生改变时执行
var temp = "<select onchange='MultiChange(this);'>" + options + "</select>";
td.html(temp);
}else{ //如果不是select类型的那么
var text = td.text(); //获取td里的val值
var temp = "<input type='text' value='" + text+ "' />"; //把值赋给input标签的value
td.html(temp);
}
}
})
} globalCtrlKeyPress = false;
// 如果按下键盘的任意键,执行 function
window.onkeydown = function(event){
console.log(event.keyCode);
//如果按下ctrl键
if(event && event.keyCode == 17){
//设置globalCtrlKeyPress为true
window.globalCtrlKeyPress = true;
}else{
//按下其他的键盘为false
window.globalCtrlKeyPress = false;
}
}; //如果任意键放开执行function
window.onkeyup = function (event) { //这里需要传入evnent
//如果ctrl键up
if(event && event.keyCode == 17 ){
//设置globalCtrlKeyPress为false
window.globalCtrlKeyPress = false;
}
}; //提升逼格多行修改
function MultiChange(ths){
// 检测是否按下ctr键
if(window.globalCtrlKeyPress == true){
// 获取当前td所在的tr中的索引位置
var index = $(ths).parent().index();
//获取当前td内的值
var value = $(ths).val();
//找到当前td下的所有的选中的(tr)标签,并循环
$(ths).parent().parent().nextAll().find("td input[type='checkbox']:checked").each(function(){
//找到当前选中标签(:checked)的上面获取的index索引值的的td标签,的子标签的值。
$(this).parent().parent().children().eq(index).children().val(value);
}); }
} //进入编辑模式 按钮触发功能
function EditMode(ths, tb){ //ths & tb 就是在html页面中我们传入的参数:onclick="EditMode(this, '#tb1');"
// ths =this,
var isEditing = $(ths).hasClass('editing'); //判断是否有这个editing的样式
if(isEditing){ //如果有说明当前是编辑状态,那么点击的时候应该退出编辑状态
// 退出编辑模式
$(ths).text('进入编辑模式'); //修改他的内容,提升逼格用的。
$(ths).removeClass('editing'); //移除这个editing样式
$(tb).children().each(function(){ //获取这个form表单下的所有tr,并循环
var tr = $(this); //当前的tr
if(tr.find(':checkbox').prop('checked')){ //找到当选中的行
// 当前行,推出编辑状态
RowOutEditMode(tr); //这里我们把代码进行了缩写,可以理解为python中调用函数的意思,我传入参数执行函数
} });
}else{
// 进入编辑模式
$(ths).text('退出编辑模式'); //修改他的内容,提升逼格用的。
$(ths).addClass('editing'); //添加这个这个editing样式
$(tb).children().each(function(){ //找到每个一个form表单下面的tr循环
// $(this) 表示循环过程中,每一个tr,每一行数据
var tr = $(this);
var isChecked = $(this).find(':checkbox').prop('checked'); //获取当前tr下的checkbox的checked属性,用来判断是否为选中状态
if(isChecked==true){//如果为选中状态
// 当前行进入编辑状态
RowIntoEditMode(tr);//我们可以把重复的代码进行简化,类似于python中的函数!
}
});
}
} //设置全选功能
function CheckAll(mode, tb){
// 1、选中checkbox
// 2、如果已经进入编辑模式,让选中行进入编辑状态
// tb = #tb1
//$(tb) = $('#tb1')
$(tb).children().each(function(){//找到tb下面的所有tr,循环
// $(this) 表示循环过程中,每一个tr,每一行数据
var tr = $(this);
var isChecked = $(this).find(':checkbox').prop('checked');//找到所有选中的tr标签
if(isChecked==true){//如果选中什么都不做
}else{//如果没有选中
$(this).find(':checkbox').prop('checked',true);//如果没有选中首先把他设置为选中状态
// 如果已经进入编辑模式,让选中行进入编辑状态
var isEditMode = $(mode).hasClass('editing');
if(isEditMode){
// 当前行进入编辑状态
RowIntoEditMode(tr);
}
}
});
} //设置反选功能
function CheckReverse(mode, tb){
// 是否进入了编辑模式
if($(mode).hasClass('editing')){//如果进入编辑模式
$(tb).children().each(function(){//循环所有的tr
// 遍历所有tr
var tr = $(this);
var check_box = tr.children().first().find(':checkbox');//找到所有的input的checkbox标签
if(check_box.prop('checked')){ //判断如果选中
check_box.prop('checked',false);//给他取消
RowOutEditMode(tr);//并退出编辑模式
}else{//如果没有选中
check_box.prop('checked',true);//给他选中
RowIntoEditMode(tr);//并进入编辑模式
}
});
}else{//如果没有进入编辑模式
$(tb).children().each(function(){ //找到所有的tr并循环
var tr = $(this);
var check_box = tr.children().first().find(':checkbox');//周到所有的checkbox标签
if(check_box.prop('checked')){ //判断是否选中
check_box.prop('checked',false);//如果选中,给他设置为为选中
}else{
check_box.prop('checked',true);//如果没有选中,给他设置为选中
}
});
}
} //设置取消功能
function CheckCancel(mode, tb){
// 1、取消选中checkbox
// 2、如果已经进入编辑模式,行退出编辑状态
$(tb).children().each(function(){ //渠道所有的tr标签,并循环
var tr = $(this);
if(tr.find(':checkbox').prop('checked')){//找到所有选中的checked标签
// 移除选中
tr.find(':checkbox').prop('checked', false);
//获取是否为编辑状态
var isEditing = $(mode).hasClass('editing');
if(isEditing == true){ //如果为编辑状态
// 当前行,推出编辑状态
RowOutEditMode(tr);
}
}
});
}
JS代码
文档处理
看下面的图片效果:
问:我想在点击加的时候在下面新增一个搜索条件框体,点击减号的时候删除当前这个框体怎么实现?
1、文档操作基础
看下面的例子:
在后面追加内容(可以是文本,可以是标签类型):
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>shuaige</title>
</head>
<body>
<div id="i1"> </div> <div id="i2" style=" padding: 0px; color: rgb(0, 0, 255); line-height: 1.5 !important;">> </div>
<script type="text/javascript" src="../js/jquery-1.8.2.min.js"></script>
<script>
$('#i1').append('<a>Hello Test Append</a>');//对这个id#i1的标签内尾部增加一条数据
$('#i1').append('<div>Test Continue</div>');//对这个id#i1的标签内尾部增加一条数据 $('#i1').prepend('<div>Prepend on the chiled tables</div>');//对这个id为i1的自标签内顶部增加一条数据 $('#i1').appendTo('#i2'); //想让某一个标签添加到某一个和标签,可以用到appendTo,把i1放到i2里面了 $('#i1').before('<h1>append content same level up</h1>');//放在找到的'#i1'同级标签上面增加
$('#i1').after('<h2>append content same level down</h2>');//放在知道的'#i1'统计标签下面增加
</script>
</body>
</html>
2、分析
上面的例子,按照行分割一步一步的写,看效果。那么返回来看上上面开始说的
我想在点击加的时候在下面新增一个搜索条件框体,点击减号的时候删除当前这个框体怎么实现?
我要增加,怎么实现呢。clone (克隆-复制)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>shuaige</title>
</head>
<body>
<div id="search_conditions">
<div class="condition">
<a onclick="AddCondition(this,'#search_conditions')">+</a>
<input/>
</div>
</div> <script type="text/javascript" src="js/jquery-1.8.2.min.js"></script>
<script>
//添加新增内容
function AddCondition(ths,condition){
//copy condition div
//在吧copy的div追加到id="search_condition"的标签内下面
var cp = $(ths).parent().clone();
console.log(cp);
//修改里面的内容,和属性
cp.children(':first').text('-').attr('onclick',"RemoveCondition(this,'#search_conditions')");
cp.appendTo('#search_conditions');
}
//新增完后的标签内新增的内容
function RemoveCondition(ths,condition){
$(ths).parent().remove();
}
</script> </body>
</html>
效果图如下(样式可以后续加上):
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAANsAAABECAIAAACH0deBAAABgElEQVR4nO3dwW2DUBREURqlkXTgblyM+0m2tmSkiHzieZpztvYCPFdsEHj7hiTbpw8AXiiSLIokiyLJokiyKJIsiiTLX4v8YqYl9VxhQZFLjoP/lLyaIhslr6bIRsmrKbJR8mqKbJS8miIbJa/2myIft/32OPgs+dw4kryaIhslr6bIRsmrKbJR8mqHRd737b39/vy15HPjSPJqrpGNkldTZKPk1RTZKHk1RTZKXs09m0bJqymyUfJqimyUvJoiGyWvpshGyaspslHyap5FLLWkniucKfLTPyYnLa/nCieLXH4cXG3KaopsMWU1RbaYspoiW0xZTZEtpqymyBZTVlNkiymrKbLFlNUU2WLKaopsMWU1RbaYspoiW0xZ7bjI51cIeGvAfFNWc41sMWU1RbaYspoiW0xZTZEtpqymyBZTVlNkiymrKbLFlNUU2WLKap5FLLK8niv4N2OyKJIsiiSLIsmiSLIokiyKJIsiyaJIsiiSLIokiyLJokiyKJIsPw6XlEESlB1CAAAAAElFTkSuQmCC" alt="" />
jQuery扩展
1、什么是jQuery的扩展
首先要了解下,python中给咱们提供和很多现成的模块,但是他的模块够用吗?不够用那怎么办?导入第三方的模块,使用现成的模块操作快捷 方便!
http://www.php100.com/manual/jquery/,中有一个叫做“插件机制”:
jQuery.fn.extend(object)
jQuery.extend(object)
2、jQuery.extend(object)
html代码如下:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>shuaige</title>
</head>
<body> <script type="text/javascript" src="jquery-1.8.2.min.js"></script>
<!--这里必须优先导入jQuery原生的js,在导入扩展的jQuery-->
<script type="text/javascript" src="extends.js"></script>
<script>
console.log($.luotianshuai())
</script>
</body>
</html>
jQuery代码如下:
//扩展使用自执行函数来写,逼格比较高点
(function (arg) {
arg.extend({
'luotianshuai':function (){
return 123;
},
'login':function(){} //他的代码是以字典形式存储的扩展jQuery
})
})(jQuery);//jQuery为传进去的函数他的方程式:(function (arg) {})();第一个括号为函数,第二个括号内存储参数
3、jQuery.fn.extend(object)
jQuery.fn.extend(object) 这个方法和jQuery.extend(object)的区别就是,jQuery.fn.extend(object)可以传入搜索参数
jQuery.fn.extend({
check: function() {
return this.each(function() { this.checked = true; });
},
uncheck: function() {
return this.each(function() { this.checked = false; });
}
});
结果:
$("input[type=checkbox]").check();
$("input[type=radio]").uncheck();
4、form表单验证(下面的两个例子基本上功能就够用了)
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAjAAAAE/CAIAAADXLW5wAAAgAElEQVR4nO2dXW/bSL6n+9MsNsW8iE7HbecAPZbjYOQG3HHGmyiLydpej5wNtiWjOztuW5jRcTSTAwXwzGLPheVGcHxj4GDtBlZzEzh3niv5YtLfwR/kXHgvii/FN4miRKooPQ+IQCmTRUpx9ODPKtbvi/8MYTx9/oJtoG3c/2IAkHu+GPsXGRsbGxsb29PnLxASGxsbG5sWG0JiY2NjY9Ni++I/AQAAaMAX5v0HedmePXtmGMZ/zM2xDbQZAAB5ACFN/jbu3zEAgFggpMnfxv07BgAQixwLadwfne7wQQFAvkBIEwsfFADkiwkRkhClnb80FoUY08eYnIGuvMfOLw67ZxftF8qPEBIA5IsJEdKLw87OkvtdLObuftwzf9mf+WV/5sPjtCwlxJ0Pe+bnvXuvhhCh/8pFpen1iv+kS42jw0rgSirNC08/BkICgLyRXEhPqrUn5pc6CMn3HS3E7WbV/LxXaM6NQBg9sE5UvbuctP+gXYQo7Zz2EpIRcJgRoTGEBAD5IomQCqu19+/ft1q6COnFYbe5rhYZqXhoea0w8j59Vx4Tsd4+82sMIQFA7klYIRXMp1U9hBT8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hrvlt6/HADAhIGQEBIAgBYgJIQEAKAFEyskAADIFwgJAAC0ACEBAIAWICQAANAChAQAAFqAkAAAQAv+P3jEZ1mDeF0zAAAAAElFTkSuQmCC" alt="" />
看下面的jQuery代码和html代码
form_authentication_extend
login_form_html
register_form_html
还有两个比较不错的扩展连接:
-- parsleyjs
http://parsleyjs.org/
-- jQuery Validate
http://jqueryvalidation.org/
如果是简单功能自己写就行了,毕竟链接里的东西,比较多简单功能咱们自己实现即可。
使用插件
页面顶部的浏览 窗口点击切换图片,如下图
连接地址:http://bxslider.com/
1.1、首先要说的还是目录结构
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZgAAAB+CAIAAACWM5ApAAAKTUlEQVR4nO3db2/bxgHH8byAeE/2YI/2sIizB8OCAX0gyLLkOHNiwPJsSXXhuk5srFgcqhu2Fh6SZqaGonAe1G4wEna7BJkxW8wSWy+gJ/SV7M3sAf+YFEnpRP3jUV/hA0Oi744nIvrh7kxdbuTnSwCgtBsT7wEADIggA6A8ggyA8ggyAMobVZD9dLLb4bm2PvF3CyCTxhdkZBmAERlrkEUa8xvOFeqGsA5qxaEXjm6h1miO+HRerchzDf4WgPTrFmTNZrMV9bi4uOjZ7uiCbMBP5piDbAxvrXstggzToFuQPdr9Q2SQPXzUO31kQoogG8rpCDKgx9Ty1evXHSn2r1evZNpNHGS5WqMpRLvdFsJ8PPfRgSWa+kZ+vpTTTGE11uc0Q4h2u91ut4VZ7yi/Vyg6n1vdtMvYdf3Fmnoj8oPtVNS8Yht5/6zNFweB55LN1mI71r0PucJGxxWoFIr2QbsdQytGdzKqY5HXyjAt++XE/y0CifUIsrX1akeQra5XZNpNFmSBj6JmNvWNXKFuCHPP+RnKkejywsk4zfR9YoWhFfPzpYpuidjEEU5SuItN3YNMutnrwh0dk+5D8Apopt1O1CliOxZ3rSIjFVBL78X+45cvvRQ7OjqWbDdhkLlDhsCYSzPtoYdTJmrc4ZWPTpxao2k1KqEcDJw6eHzPFLGDna7NR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QpABmHIEGQDlEWQAlEeQAVBeSoPsdcyj/qc/T7xvANJGsSA7Pv6OLAPQIdVBFj74uwfLR8fHZBkAv7QH2V//90dbPjhMm3gPAaSHAkH28XHNDrKOX3XIlZc3T9bK5d73xOYKS1W5koPXGm4LACIpEGSF4kJ4XDZI40MMsr6aIsiAESHIBqpFkAFpoEaQFYoL3gQzdmrpxoTzpL6ye1rbPa1t1u86BcrLmyfV3dPaZn3ZCxTv4M7JytLcQvlF1S6f21rZebFc8n0F3Wl2y2vkbq6wVD2p2mfZebbUUaC6VSzV1/x9IMiAEVEjyLyfedkgq+48W8rbeXSycr/gHKxuFfPzpVJ9bccfeXaiba242bRy3/kZHnxV7XQLNuu2ECxwnV9RhQEMUVaDzB8ua+VyMVde3nRHWIGD7pDKHlXl50t2BtmRF9l+z3PJFAYwRARZaORFkAGqUSDI/PKJgyx2aln1FtHc8oGppUSzBBkwYWkPMvlf9Q6XLW/5P2Kxf/e09ujpfW+xv1Rfc1a7ejV7/1k1sNhPkAFjl+og6/KYeA8BpAdBBkB5KQ0yAJBHkAFQHkEGQHkEGQDlEWQAlEeQAVAeQQZAeaMKsp9Odjs819Yn/m4BZNL/AcMSX3tnwFtuAAAAAElFTkSuQmCC" alt="" />
1.2、下载插件
1.3、应用插件
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>shuaige</title>
<!--引入第三方的css-->
<link href="extend_plugin-in/jquery.bxslider/jquery.bxslider.css" rel="stylesheet">
</head>
<body>
<!--按照要求的格式书写-->
<ul class="bxslider">
<li><img src="data:images/image_1.jpg" /></li>
<li><img src="data:images/image_2.jpg" /></li>
<li><img src="data:images/image_3.jpg" /></li>
</ul>
<!--导入js文件-->
<script type="text/javascript" src="js/jquery-1.8.2.min.js"></script>
<!--然后在导入插件内的js文件-->
<script type="text/javascript" src="extend_plugin-in/jquery.bxslider/jquery.bxslider.min.js"></script>
<script>
$(document).ready(function(){ //当整个页面加载完成执行的函数
$('.bxslider').bxSlider();
});
</script>
</body>
</html>
1.4根据自己的需求修改他的样式和图片
BootStrap框架
1、BootStrap介绍
说BootStrap其实他是一个类库,定了一些js方法和css
网页编程:http://v3.bootcss.com/getting-started/ (从起步开始一步一步学)
Bootstrap 是一个用于构建响应式网站的前端框架。无论你想构建应用 程序、博客还是 CMS 网站,Bootstrap 都完美适用,只要你想得到, 它都能行。
Bootstrap 把 HTML、CSS 和 JavaScript 组合起来,为构建 稳定的网站提供了基础设施,也能提高开发效率。
基于默认的网格系 统,布局变成了小菜一碟,按钮、导航和表格也都活脱脱地赏心悦目。 十几个 JavaScript 插件更为我们赋予网站交互能力提供了强大保障。
响应式布局:根据用户设备的不同,进行相应的布局!(根据浏览器的宽度设置)
Bootstrap 是 Mark Otto 和 Jacob Thornton 共同开发的一个开源框架。 最初发布 Bootstrap 的时候,他们两位都在 Twitter 工作。当时,他 们面临着为公司内部提供一套标准化的前端开发工具的需求。在发布 Bootstrap 的那篇博客中,Mark Otto 这样介绍他们的新项目:
Twitter诞生初期,为了完成前端开发任务,工程师们几乎尝试 了自己熟悉的所有库。应用之间的不一致性导致它们难以扩 展和维护。Bootstrap最初就是这个问题的一个解决方案,而且 在Twitter内部第一次Hackweek上得到了认可。Hackweek结束 后,我们手头上的项目已经相当稳定,可以在公司内部部署使 用了。
--Mark Otto
https://dev.twitter.com
Bootstrap 是 2011 年 8 月发布的,发布之后就迅速走红。而且,它也 从最初 CSS 驱动的项目,发展到内置了很多 JavaScript 插件和图标, 并且涵盖了表单和按钮元素。Bootstrap 本身支持响应式 Web 设计, 而且拥有一个非常稳健的 12 列、940 像素宽的网格布局系统。值得一 提的是,Bootstrap 网站(http://getbootstrap.com)上还提供了一个构 建工具,让你根据自己的需求选择 CSS 和 JavaScript 功能。所有这一 切让前端 Web 开发有了前瞻性的设计和开发基础,开发效率倍增。上 手使用 Bootstrap 非常简单,跟在网站中整合 CSS 和 JavaScript 没有 什么区别。
2、文件结构
bootstrap2
├── css
│ ├── bootstrap-responsive.css //不使用响应式布局
│ ├── bootstrap-responsive.min.css //不使用响应式布局
│ ├── bootstrap.css
│ └── bootstrap.min.css
├── img
│ ├── glyphicons-halflings-white.png //大图通过“扣洞移动照片”的方式来显示图标
│ └── glyphicons-halflings.png //大图通过“扣洞移动照片”的方式来显示图标
└── js
├── bootstrap.js
└── bootstrap.min.js
bootstrap3
├── css
│ ├── bootstrap-theme.css //主题类型,生产上一般用不到
│ ├── bootstrap-theme.css.map //主题类型,生产上一般用不到
│ ├── bootstrap-theme.min.css //主题类型,生产上一般用不到
│ ├── bootstrap.css
│ ├── bootstrap.css.map //做映射的,可以理解为 shuaige = “luotianshuai” 那么掉shuaige的时候就相当于掉luotianshuai
│ └── bootstrap.min.css
├── fonts //包含了字体图标文件,他也是做的对应。下面的文件包含了不同系统下的字体图标
│ ├── glyphicons-halflings-regular.eot
│ ├── glyphicons-halflings-regular.svg
│ ├── glyphicons-halflings-regular.ttf
│ ├── glyphicons-halflings-regular.woff
│ └── glyphicons-halflings-regular.woff2
└── js
├── bootstrap.js
├── bootstrap.min.js
"""
eot、svg、ttf、woff、woff2
@font-face语句是css中的一个功能模块,用于实现网页字体多样性的模块(设计者可随意指定字体,不需要考虑浏览者电脑上是否安装)。
而由于网页中使用的字体类型,也是各浏览器对字体类型有不同的支持规格。 字体格式类型主要有几个大分类:TrueType、Embedded Open Type 、OpenType、WOFF 、SVG。
eot EOT– Embedded Open Type
EOT是嵌入式字体,是微软开发的技术。允许OpenType字体用@font-face嵌入到网页并下载至浏览器渲染,存储在临时安装文件夹下。
SVG Scalable Vector Graphics
SVG是由W3C制定的开放标准的图形格式。SVG字体就是使用SVG技术来呈现字体,还有一种gzip压缩格式的SVG字体。
ttf TrueType
Windows和Mac系统最常用的字体格式,其最大的特点就是它是由一种数学模式来进行定义的基于轮廓技术的字体,这使得它们比基于矢量的字体更容易处理,保证了屏幕与打印输出的一致性。同时,这类字体和矢量字体一样可以随意缩放、旋转而不必担心会出现锯齿。
woff WOFF–WebOpen Font Format
WOFF(Web开发字体格式)是一种专门为了Web而设计的字体格式标准,实际上是对于TrueType/OpenType等字体格式的封装,每个字体文件中含有字体以及针对字体的元数据(Metadata),字体文件被压缩,以便于网络传输。 """
3、HTML样板(根据自己需求修改)
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<!--指定告诉ID用高版本的解析-->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- 上述3个meta标签*必须*放在最前面,任何其他内容都*必须*跟随其后! -->
<title>Shuaige</title>
<!-- Bootstrap -->
<link href="extend_plugin-in_bootstrap/css/bootstrap.min.css" rel="stylesheet"> </head>
<body>
<h1>你好,世界!</h1> <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="js/jquery-1.8.2.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="extend_plugin-in_bootstrap/js/bootstrap.min.js"></script>
</body>
</html>
复制代码
复制代码
"""
<meta charset="utf-8">
编码 <meta http-equiv="X-UA-Compatible" content="IE=edge">
Bootstrap 不支持 IE 古老的兼容模式。为了让 IE 浏览器运行最高级别的可用模式渲染显示内容 <meta name="viewport" content="width=device-width, initial-scale=1">
为了确保适当的绘制和触屏缩放,需要在 <head> 之中添加 viewport 元数据标签。 在移动设备浏览器上,通过为视口(viewport)设置 meta 属性为 user-scalable=no 可以禁用其缩放(zooming)功能。这样禁用缩放功能后,用户只能滚动屏幕,就能让你的网站看上去更像原生应用的感觉。
注意,这种方式我们并不推荐所有网站使用,还是要看你自己的情况而定! <meta name="renderer" content="webkit">
国内浏览器厂商一般都支持兼容模式(即 IE 内核)和高速模式(即 webkit 内核),不幸的是,所有国产浏览器都是默认使用兼容模式,这就造成由于低版本 IE (IE8 及以下)内核让基于 Bootstrap 构建的网站展现效果很糟糕的情况。
幸运的是,国内浏览器厂商逐渐意识到了这一点,某些厂商已经开始有所作为了,目前只有360浏览器支持此 <meta> 标签。希望更多国内浏览器尽快采取行动、尽快进入高速时代!
"""
jQuery常用案例总结的更多相关文章
- jQuery 常用核心方法
jQuery 常用核心方法 .each() 遍历一个jQuery对象,为每个匹配元素执行一个函数 $('p').each(function(idx,node){ $(node).text(idx + ...
- 《JQuery常用插件教程》系列分享专栏
<JQuery常用插件教程>已整理成PDF文档,点击可直接下载至本地查阅https://www.webfalse.com/read/201719.html 文章 使用jquery插件实现图 ...
- jquery 常用选择器和方法以及遍历(超详细)
jQuery 常用选择器和和方法 学习总结 一.JQuery 介绍 1. 什么是 jQuery 2. jQuery 版本介绍 3. jQuery 文件介绍 二.jQuery 对象 1. jQuery ...
- 24、jQuery常用AJAX-API/Java调用MySQL / Oracle过程与函数
1)掌握jQuery常用AJAX-API 2)掌握Java调用MySQL / Oracle过程与函数 一)jQuery常用AJAX-API 目的:简化客户端与服务端进行局部刷新的异步通讯 (1)取 ...
- 23、jQuery九类选择器/jQuery常用Method-API/jQuery常用Event-API
1)掌握jQuery九类选择器及应用 2)掌握jQuery常用Method-API 3)掌握jQuery常用Event-API 一)jQuery九类选择器[参见jQueryAPI.chm手册] 目 ...
- JQuery常用实用的事件[较容易忽略的方法]
JQuery常用实用的事件 注:由于JQuery片段较多就没有用插入代码文本插入,请见谅!JQuery 事件处理ready(fn)代码: $(document).ready(function(){ ...
- jquery常用代码集锦
1. 如何修改jquery默认编码(例如默认GB2312改成 UTF-8 ) 1 2 3 4 5 $.ajaxSetup({ ajaxSettings : { contentT ...
- jquery常用函数与方法汇总
1.delay(duration,[queueName]) 设置一个延时来推迟执行队列中之后的项目. jQuery1.4新增.用于将队列中的函数延时执行.他既可以推迟动画队列的执行,也可以用于自定义队 ...
- JQuery常用API 核心 效果 JQueryHTML 遍历 Event事件
JQuery 常用API 参考资料:JQuery 官网 jQuery API 中文文档 核心 jQuery 对象 jQuery() 返回匹配的元素集合,无论是通过在DOM的基础上传递的参数还是创建 ...
随机推荐
- Git如何克隆Gitlab?Git本地仓库如何上传Gitlab?
首先确保本机已经安装上Git,其次确认可以正常访问Gitlab服务器 环境: Git:Centos 7.x 192.168.126.138 Gitlab: Centos7.x 192.168.126 ...
- 跟我一起玩Win32开发(10):绘图(C)
今天我们来欣赏一下用于填充图形的函数,当然我不会逐个去介绍,因为我们参考MSDN直接套参数就可以了. SetDCBrushColor函数有必要扯一下,它的声明如下: COLORREF SetDCBru ...
- Python递归和迭代
递归 在函数内部,调用函数自身的编程技巧称为递归( recursion).递归函数结构清晰,很直观的理解计算过程,但也有严重缺点:相对于普通循环而言,递归运行效率较低,经过很多冗余的计算,递归会消耗大 ...
- DP HDOJ 5492 Find a path
题目传送门 题意:从(1, 1)走到(n, m),每次往右或往下走,问(N+M−1)∑(Ai−Aavg)2 的最小值 分析:展开式子得到(N+M−1)∑(Ai2) - (∑(Ai))2的最小值.用普通 ...
- windows session 管理
Killing an Oracle process from inside Oracle I had a following situation few days ago – I was runnin ...
- solrJ的查询->统计【转】
package com.fjsh.SearchJobsFirst; import java.text.SimpleDateFormat; import java.util.Calendar; impo ...
- SpringBoot项目不占用端口启动
@EnableScheduling @SpringBootApplication public class Application { public static void main(String[] ...
- AJPFX关于多线程概述及应用
一.认识多任务.多进程.单线程.多线程要认识多线程就要从操作系统的原理说起. 以前古老的DOS操作系统(V 6.22)是单任务的,还没有线程的概念,系统在每次只能做一件事情.比如你在copy东西的时候 ...
- C#处理Android Audio and Video
Video Converter for .NET (C#) FFMpeg wrapper http://www.nrecosite.com/video_converter_net.aspx Docum ...
- vue路由导航守卫及前置后置钩子函数参数详解
首先构建一个测试demo如下图: 接着来探讨路由配置界面 import Vue from 'vue' import Router from 'vue-router' // import HelloWo ...