GC和内存泄露无关垃圾回收,这次是一个被无数人讨论过的传统话题。Action Script使用的是和Java相似的内存管理机制,并不会即时回收废弃对象的内存,而是在特定时间统一执行一次GC(Gabage Collection)操作来释放废弃对象的内存,避免了重复判断是否需要回收产生的性能问题。但要注...
分类:
其他好文 时间:
2014-09-28 21:03:46
阅读次数:
250
DEMO说明一切: 1 // this is the id of the form 2 $("#idForm").submit(function() { 3 4 var url = "path/to/your/script.php"; // the script where you han...
分类:
编程语言 时间:
2014-09-28 11:51:51
阅读次数:
240
$str?=?preg_replace(?"@<script(.*?)</script>@is",?"",?$str?);?
$str?=?preg_replace(?"@<iframe(.*?)</iframe>@is",?"",?$str?);?
$str?=?preg_replace(?"@<style(.*?)</style>@is",?"",?...
分类:
Web程序 时间:
2014-09-27 19:46:00
阅读次数:
164
使用script脚本为网页中的按钮添加时间,起先代码如下 点击这里 在火狐的Debug中document.getElementById("btn").onclick=function(){displayDate()};这一句会报is NULL 的错误,所以需要在脚本出现之前定义按钮,但是脚本...
分类:
编程语言 时间:
2014-09-27 19:09:00
阅读次数:
187
<script?language="javascript">
rnd.today=new?Date();
rnd.seed=rnd.today.getTime();
function?rnd()?{
rnd.seed?=?(rnd.seed*9301+49297)?%?233280;
return?rnd.seed/(233280.0);
};
???...
分类:
Web程序 时间:
2014-09-27 16:41:20
阅读次数:
172
本章应该与rel(4),systools(3)和script(4)。发布的概念当我们已经写了一个或多个应用后,我们可能想创建一个由这些应用和Erlang/OTP应用的一个子集组成的完整系统。要实现这个目的,我们通过创建一个定义在发布中要包含哪些应用的发布资源文件。该发布资源文件是用于生成启动脚本和发...
分类:
其他好文 时间:
2014-09-27 14:33:59
阅读次数:
253
在HTML中使用Javascript: ———————————————————————————————————————————————————————— 主要内容; 一、<script>元素的使用。 二、嵌入脚本和外部引入脚...
分类:
编程语言 时间:
2014-09-26 19:42:08
阅读次数:
409
Today , I writed a awk script,it can get http address. The http address only contains number, alphabet,backslash and point. My awk script is following...
分类:
其他好文 时间:
2014-09-26 02:49:58
阅读次数:
196
<div id="float" class="float"> ?<a>1</a> ?<a>2</a> </div> <style> .float{width:168px;height:294px;position:absolute;top:180px;left:254px;z-index:100;padding-top:32px;} </style> ?<script> (funct...
分类:
其他好文 时间:
2014-09-25 22:13:38
阅读次数:
316
<script type="text/javascript">
$(document).ready(function(){
????alert($(window).height()); //浏览器时下窗口可视区域高度
????alert($(document).height()); //浏览器时下窗口文档的高度
????...
分类:
Web程序 时间:
2014-09-25 20:26:08
阅读次数:
184