$(document).ready(function (){ var options = { chart: { renderTo: 'container', defaultSeriesType: 'spline', //图表类型 line, spline, area, areaspline, co....
分类:
其他好文 时间:
2015-01-13 17:28:44
阅读次数:
146
把的标签放在之前$.ready()要先于$.load()执行$("#div1 > li") //direct child selector:选取div1下的直接子元素$("#div1, div2") //multiple selector$("ul :first") //伪对象选择符:取第一个ul元...
分类:
Web程序 时间:
2015-01-12 23:55:58
阅读次数:
185
用xshell客户端连接主机出现错误:
ssh 用户名@ip_address [port]
官方文档上的提示:
"Could not connect to 'hostname' (port 22): Connection failed."
Check if the host machine is ready for connection and the port...
分类:
其他好文 时间:
2015-01-12 16:43:39
阅读次数:
104
//禁止按回车提交$(document).ready(function(){$("input[@type='text']").each(function(){$(this).keypress(function(e){varkey=window.event?e.keyCode:e.which;if(k...
分类:
Web程序 时间:
2015-01-12 14:33:18
阅读次数:
165
假如页面中有以下菜单
首页
归档
分类
关于
如果不是Bootstrap自行定义active CSS样式
$(document).ready(function(){
$(".navbar-nav li").click(function(){
$(this).addClass("active").siblings().removeClass("active");...
分类:
Web程序 时间:
2015-01-09 23:51:50
阅读次数:
530
转自博客园:http://www.cnblogs.com/easyinsc/archive/2009/02/27/1407826.html1/**//** * @author ming */ 4$(document).ready(function(){ 6/...
分类:
Web程序 时间:
2015-01-09 12:21:31
阅读次数:
92
$(document).ready在页面框架下载完毕后就执行,而window.onload必须在页面全部加载完毕(包含图片下载)后才执行,前者的执行效率更高
JQuery选择器在定位元素的时候,即使该元素不存在不存在也不会报错
基本选择器
选 择 器 描 述...
分类:
Web程序 时间:
2015-01-09 09:13:22
阅读次数:
188
1、初始化等待分享// 开发阶段,开启WeixinApi的调试模式WeixinApi.enableDebugMode();// 初始化WeixinApi,等待分享WeixinApi.ready(function(Api) { // 微信分享的数据 var wxData = { ...
分类:
微信 时间:
2015-01-08 20:03:55
阅读次数:
526
Akka Actor_Future的使用 常见的是通过Actor的tell方法给另外一个actor发送消息,但是actor 和 future怎么交互,发送消息,如下, Future<Object>?future?=?Patterns.ask(a,?"are?you?ready?",?timeout);...
分类:
其他好文 时间:
2015-01-08 18:19:36
阅读次数:
261
原文:php变量赋值给js
$(document).ready(function(){ var t=; alert(t) }) 或 关键是sd两旁既要加单引号还要加上引号否则就会显示“sd is not defined[在此错误处中断] var t=sd;”
sd不加引号即为一个变量,之前没定义过该...
分类:
Web程序 时间:
2015-01-08 14:47:00
阅读次数:
132