- 浏览: 570834 次
- 性别:
- 来自: 济南
-
最新评论
-
mr_xiaoyu:
最终会调用到ScheduledFutureTask#run() ...
ScheduledThreadPoolExecutor -
csmnjk:
谢谢分享!
SSH + Lucene + 分页 + 排序 + 高亮 模拟简单新闻网站搜索引擎 -
qsword555:
public static void main(String ...
ScheduledThreadPoolExecutor -
yun900800:
我的也是就抛了一次异常
ScheduledThreadPoolExecutor -
bjfuzh:
bjfuzh 写道我自己跑了下,那个抛异常的定时器,只执行了一 ...
ScheduledThreadPoolExecutor
文章列表
function Opacity(dom , spec) {
Element.extend(dom);
var from = spec.from || dom.getOpacity();
var to = spec.to || '1.0';
var fps = spec.fps || 100;
var delay = spec.delay || 0;
var duration = spec.duration;
var startOn = delay * 1000;
var finishOn = startOn + duration * 1000;
var to ...
<!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="Content-Type" content="text/html; charset ...
<!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="Content-Type" content="text/html; charset ...
document.observe("dom:loaded", function() {
Object.extend(String.prototype , {
bLength : function () {
if (!this.toString()) {
return 0;
}
var b = this.toString().match(/[^\x00-\xff]/g);
return this.toString().length + (b ? b.length : 0);
} ,
...
var isChrome = window.chrome;
function safeInvoke(callback) {
/// <summary>沙箱模式下的回调</summary>
//因为Chrome不支持require引入脚本包的功能,为避免需要将整个jQuery加载进来,这里使用非安全模式进行执行
if (isChrome) unsafeInvoke(callback);
else callback();
}
function unsafeInvoke(callback) {
/// <summar ...
var f = false;
try {
window.external.twExtSendMessage2();
f = true
} catch (g) {}
if(f) {
alert('是360浏览器');
}
var insertHTML = function(node , html ,where) {
if(node.ownerDocument.createRange) {
var range = node.ownerDocument.createRange();
switch(where) {
case "beforebegin" :
range.setStartBefore(node);
...
function parse(str) {
var result = {};
var reg = /^([a-z0-9]+):([\/]{1,3})((?:[a-z0-9\-\.]+)+\.[a-z0-9]+)(?::(\d+))?[\/]?([^?#]*)?[\?]?([^?#]*)?(?:#(.*))?$/i;
var map = reg.exec(str) ,
arr = ["url" , "scheme" , "slash" , "host" , "port&quo ...
< <
> >
& &
" "
" "
' '
全角转换为半角
* 半角字符范围(0x20 - 0x7e) 空格为0x20
* 全角字符范围(\uff01 - \uff5e) 空格特殊\u3000
* 相差65248
<h1>用document.domain解决Ajax跨子域</h1>
<h3><a href="http://www.js8.in/443.html">用document.domain+iframe实现Ajax跨子域</a>|<a href="http://www.js8.in/443.html#comments">评论</a></h3>
<p>利用Ajax跨域加载的内容是位于work.js8.in域名下的helloworld.txt ...
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<h1>我是A页面</h1>
<div id="addArea">
</div>
<iframe id="bpage" frameborder="0" scrolling="no" width="300" height="150& ...
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<h1>我是A页面</h1>
<div id="addArea">
</div>
<iframe name="bpage" frameborder="0" scrolling="no" width="300" height="15 ...
<h1>我是A页面</h1>
<iframe name="bpage" frameborder="0" scrolling="no" width="300" height="150" src="http://b.com/kuayu/b/b.html"></iframe>
<script type="text/javascript">
window.crossLoad = function() ...