vart="<%=request.getParameter("do")%>";
alert(t);
分类:
Web程序 时间:
2014-05-27 03:54:38
阅读次数:
209
参考资料《大话设计模式》Mediator(中介者)模式:使各个对象不需要显式的相互调用,从而使其耦合松散。using System;using
System.Collections.Generic;using System.Linq;using System.Text;namespace
ds_me...
分类:
其他好文 时间:
2014-05-23 10:13:17
阅读次数:
331
这是一个很贱的技能,我在谷歌控制台源码里看到的。相信大家都知道,在控制台里只输入函数名,不输入
() 然后按回车,就可以输出源码。都不会陌生吧,这也有助于我们调试,是个很棒的技巧。不过系统内置的就会输出function alert() { [native
code] }比如这个。不过当我们输入 di...
分类:
其他好文 时间:
2014-05-23 09:49:20
阅读次数:
259
用Javascript取float型小数点后两位,例22.127456取成22.13,如何做?
1.这种方法最不推荐:
function get(){
var s = 22.127456 + "";
var str = s.substring(0,s.indexOf(".") + 3);
alert(str);
}
2. 使用正则表达式获取:
function g...
分类:
编程语言 时间:
2014-05-23 08:06:59
阅读次数:
249
p Me Escape
Time Limit: 2 Seconds Memory Limit: 32768 KB
Background
If thou doest well, shalt thou not be accepted? and if thou doest not well, sin lieth at the door. And unto th...
分类:
其他好文 时间:
2014-05-22 12:50:31
阅读次数:
280
困惑一:window.color = "red";
var o = {color: "blue"};
function sayColor(){
alert(this.color);
}
sayColor(); //red
sayColor.call(this); //red
sayColor.call(window); //red
sayColor.call(o); //bl...
分类:
编程语言 时间:
2014-05-22 12:32:53
阅读次数:
255
Android webView调用js方法很简单, webView.loadUrl("javascrpt:yourFunction()");
但是此方法没有办法获取返回结果
此时只能通过调用alert方法,然后通过重写WebChromClient中的onJsAlert方法,来获取到返回结果。
例如webView.loadUrl("javascript:alert(yourFunction()...
分类:
移动开发 时间:
2014-05-22 08:50:16
阅读次数:
245
上联:no zuo no die why you try
下联:no try no high give me five
横批: let it go。
坑爹bug:
错误写法:
0 } ">true (最后一个大括号后多出一个空格,代码啥都不会输出)
正确写法: 0 }">true 正确写法 输出结果: true...
分类:
Web程序 时间:
2014-05-22 07:42:52
阅读次数:
355
A
123
var a = $(".content")[0].firstChild.data;
function al(){
alert(a);
}
window.onload=al;...
分类:
其他好文 时间:
2014-05-22 07:00:08
阅读次数:
254
http://zhibinyang.me为了博客能够有更强的扩展性和更多地功能,现转移到专用的域名和空间,欢迎访问:
分类:
其他好文 时间:
2014-05-20 23:56:23
阅读次数:
350