1 1, get value:$( "#myselect" ).val();//=>
12, get (inner)text:$( "#myselect option:selected" ).text();// => "Mr"ref:How
do I get the text value of a ...
分类:
其他好文 时间:
2014-05-27 02:25:09
阅读次数:
223
@echo offrem test.sql文件for %%i in (test.sql) do (
echo excute %%i mysql -u用户名 -p密码 -D数据库名 < %%i)echo successpause
分类:
数据库 时间:
2014-05-23 23:59:32
阅读次数:
569
??
A Stack or A Queue?
Time Limit:
1 Second Memory Limit: 32768 KB
Do you know stack and queue? They're both important data structures. A stack is a "first in last out" (FILO) data ...
分类:
其他好文 时间:
2014-05-22 12:24:38
阅读次数:
236
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=1083题意差不多是这样,给你n条线的长度,让你染色,每次只能染2个长度单位,让你先染,问是否能赢的胜利其实这题和取石子的那题(ECNU
1328 Stripes)差不多,...
核心思路:标准浏览器(含IE9+)比较简单,直接监听DOMContentLoaded事件;低版本的IE(IE678)两套机制:1)尝试轮询document.documentElement.doScroll("left")是否报错,若报错则dom树结构未ready,否则dom
ready;2)监听do...
分类:
其他好文 时间:
2014-05-19 18:46:52
阅读次数:
214
这里是javascript中制作滚动代码的常用属性页可见区域宽:
document.body.clientWidth;网页可见区域高: document.body.clientHeight;网页可见区域宽:
document.body.offsetWidth (包括边线的宽);网页可见区域高: do...
分类:
Web程序 时间:
2014-05-19 13:49:01
阅读次数:
387
题目链接:
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3769
Diablo III
Time Limit: 2 Seconds Memory Limit: 65536 KB
Diablo III is an action role-playing video game. A fe...
分类:
其他好文 时间:
2014-05-18 18:40:35
阅读次数:
345
在C++中,有三种类型的循环语句:for, while, 和do...while, 但是在一般应用中作循环时, 我们可能用for和while要多一些,do...while相对不受重视。
但是,最近在读我们项目的代码时,却发现了do...while的一些十分聪明的用法,不是用来做循环,而是用作其他来提高代码的健壮性。
1. do...while(0)消除goto语句。
通常,如果在...
分类:
其他好文 时间:
2014-05-18 15:01:00
阅读次数:
259
Warning[★警告★]:
(1) authorization code sensitive parts of antivirus software, you can let go.
Do not worry deleted! Such as: 360
(2) requires a license copyrighted software, pirated reserved!...
分类:
移动开发 时间:
2014-05-18 13:59:25
阅读次数:
380
#include
#include
#include //system(); 这个指令需要用到此头文件
#include //toupper要用到
void main()
{
char letter;
do{
printf("A Display directory listling\n");
printf("B Display disk information\n");
...
分类:
其他好文 时间:
2014-05-18 06:46:07
阅读次数:
292