`
mutongwu
  • 浏览: 453867 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论
文章列表
(function($){ var hashchange = 'hashchange', DOC = document, documentMode = DOC.documentMode, supportHashChange = ('on' + hashchange in window) && ( documentMode === undefined || documentMode > 7 ); $.fn[ hashchange ] = function(callback){ return callbac ...
http://msdn.microsoft.com/en-us/library/bb250442(VS.85).aspx Table 1. Client Cache Headers Pragma: no-cacheThe client is unwilling to accept any cached responses from caches along the route and the origin server must be contacted for a fresh copy of the resource.If-Modified-Sincedatetime The server ...
/** * @author wushufeng * * 跨域的js通信,允许子页面再次嵌套iframe。利用了IE6/7的navigator对象是公用的hack。 * 注意:为了能兼容IE6/7,使用的时候需要保证: * 1. 要通讯的iframe必须指定name属性; * 2. 要通讯的iframe的name属性,必须唯一。 * usage: * * 父页面: * 1.嵌入iframe,name=iframe1 * 2.new一个通讯对象:var aMsg = new XDMessage(); * 3.监听ifram ...
...
IE6/7不支持,其它浏览器ok。 1. 有个代理页面,放在公共的域名下。 <!DOCTYPE html> <!-- Copyright 2010 Nicholas C. Zakas. All rights reserved. BSD Licensed. --> <!-- modified by wushufeng 2014-07-01. --> <html> <meta charset="UTF-8"> <body> <script type="text/javasc ...
半成品,凑合用一下。 function parseDate(str,fm){ var start = 0,ch1 = null,ch2 = null; var chReg = /^[yMdhms]$/, nReg = /^\d$/; str = str.replace(/^\s+/g,'').replace(/\s+$/,''); fm = fm.replace(/^\s+/g,'').replace(/\s+$/,''); if(str.length !== fm.length){ return null; ...
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Insert title here</title> <link type="text/css" rel="styleSheet" href="base.css"/> <script type="text/javascript" charset="utf-8&qu ...
转自:http://www.cssplay.co.uk/menu/cssplay-loading-animation.html <div class="loading one"></div> <div class="loading2 three"></div> <style> div.loading {width:200px; height:200px; position:relative; float:left; margin:0 10px;} div.one {backgro ...
<div class="slideshow"> <input type="checkbox" id="image1" /><label for="image1" class="toggle"><img src="../gall/pic_40h.jpg" alt="" /></label> <input type="checkbox" id="image ...
支持数据多级嵌套和数组: var applyTpl = (function(){ var reg = /\{([\w\.]*)\}/g; var regArr = /<#for\s+(\w+)>(.*?)<\/for#>/g, regArrIdx = /\{#i\}/g, regArrVal = /\{#val\}/g; function getVal(key,data){ var arr = key.split("."), val = ...
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=Edge" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1 ...
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=Edge" /> <title>大屏幕</title> <script type="text/javascript" src="jquery.js" ></script&g ...

css3的饼图

来自:http://atomicnoggin.ca/test/pie-chart.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Co ...
程序启动过渡界面: 可以利用draw9patch,搞几个规格的图片,https://developer.android.com/tools/help/draw9patch.html 放到/res/drawable的相应文件夹。文件名保持为 splash.9.png即可。 给工程添加插件:(要求先安装git命令行工具。) $ cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen.git $ cordova plugin rm org.apache ...
1.安装 nodejs 2.安装 cordova: npm install -g cordova 3.创建一个工程: cordova create MyApp com.example.MyApp MyApp 其中:第一个 MyApp是文件夹的名称; com.example.MyApp 是app id 第二个MyApp是工程的名称,也是应用的名称 4.进入文件夹 cd MyApp 5.创建一个android的应用 cordova platform add android 6.用ec ...
Global site tag (gtag.js) - Google Analytics