摘要:
遇到的问题1: 软件中无此属性 打开Packages目录,Preferences > Browse Packages 就可以进入这个目录。$ cd Packages/$ git clone https://github.com/wbond/sublime_package_control.git "P 阅读全文
摘要:
1.头部 <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%><%@ taglib pr 阅读全文
摘要:
ele.on({ mouseover : function(){ } , mouseout : function(){ } }) 阅读全文
摘要:
设置timeout的时间,通过检测complete时status的值判断请求是否超时,如果超时执行响应的操作。 var ajaxTimeoutTest=$.ajax({ url:'',//请求地址 timeout:1000,//超时时间设置, 单位毫秒 type:'GET',//get或post d 阅读全文
摘要:
function unique(arr){ for(var i=0,res=[],json={};i<arr.length;i++){ if(!json[arr[i]]){ json[arr[i]]=1; res.push(arr[i]); } } return res.sort((a,b)=>(a 阅读全文
摘要:
阅读全文
摘要:
javascript创建对象简单的说,无非就是使用内置对象或各种自定义对象,当然还可以用JSON;但写法有很多种,也能混合使用。 1、对象字面量的方式 var person={firstname:"Mark",lastname:"Yun",age:25,eyecolor:"black"}; 2、用f 阅读全文
摘要:
<style type="text/css"> div{ width:100px;height: 100px; animation: carton 5s; background:red; -moz-animation: carton 5s; /* Firefox */ -webkit-animati 阅读全文
摘要:
给父级定义伪类 div:after{ content:""; display:table; clear:both; } 阅读全文
摘要:
① IE8/IE7/IE6支持通过document.createElement方法产生的标签,可以利用这一特性让这些浏览器支持HTML5新标签 ② 也可以使用成熟的框架 ex:html5shim <!--[if lt IE 9]> <script src="http://html5shim.goog 阅读全文