汇编网首页登录博客注册
xiaofkg的学习博客
博客首页博客互动【做检测题】论坛求助

我的博客

个人首页 |  我的文章 |  我的相册 |  我的好友 |  最新访客 |  文章收藏 |  论坛提问 |  友情链接 |  给我留言  
图片载入中
学习动态
好友圈
文章收藏
友情链接

[2009-10-28 23:23] JCreator 外围工具的配置列表

astyle --c/c++ java 代码美化工具...
阅读全文 | 评论次数(0) | 浏览次数(682) | 所属类型(心得体会)

[2009-10-28 23:17] 类的初始化

为了总结对象的创建过程,考虑一下名为Dog的类:
1、即使Dog类没有明确使用static关键字,constructor实际上就一个static方法。 所以Dog类型的对象第一次被创建的时候,或者Dog类的static成员第一次被访问的时候,Java解释器必须通过查找类路径来得到Dog.class文件。
2、当Dog.class文件被加载之后,(你将在后面学习创建类对象的知识),它的所有statics被初始化。 因此,当Class对象第一次被加载的时候,static初始化只发生一次。
3、当你使用new Dog()创建了一个对象时,Dog对象首先在堆里分配到足够的存贮空间。
4、这块空...
阅读全文 | 评论次数(0) | 浏览次数(572) | 所属类型(心得体会)

[2009-09-03 17:20] 清除页面在客户端中的缓存

//禁用客户端缓存  
  HTML  
          <META   HTTP-EQUIV="pragma"   CONTENT="no-cache">  
          <META   HTTP-EQUIV="Cache-Control"   CONTENT="no-cache,   must-revalidate">  
          <META   HTTP-EQUIV="expires"   CONTENT="Mon,   23   Jan   1978   12:52:30   GMT">

 

asp

<%
  Response.Buf...
阅读全文 | 评论次数(0) | 浏览次数(715) | 所属类型(心得体会)

[2009-09-03 17:16] 动态的给容器赋值

以div容器为例
第一种方式 <div id="divc" />
<SCRIPT LANGUAGE="JavaScript">
var div = document.getElementById("divc");
var html = ""
html += ""
+ "<h1>"
+ "<a href='javascript:;' onclick=\"alert('javascript')\">DHTML innerHTML propery.</a>"
+ "</h1>";
div.innerHTML = html;
</SCRIPT>

第二种方法
<SCRIPT ...
阅读全文 | 评论次数(0) | 浏览次数(612) | 所属类型(心得体会)

[2009-09-03 15:46] 在IE,FireFox中屏蔽右键菜单和选择功能

<script>
document.oncontextmenu=function(){return false;}
document.onselectstart=function(){return false;}//这个函数是对ie,为ff时使用css来控制
</script>
<style>   
  html,body{   
                      height:100%;   
                      width:100%; padding:0px;   
                      margin:0px;    ...
阅读全文 | 评论次数(0) | 浏览次数(654) | 所属类型(心得体会)

[2009-09-03 15:08] document.open 与 window.open的区别

An important point about the open() method is that it is almost always invoked as window.open(), even though window refers to the global object and should therefore be entirely optional. Since the document object also has an open() method, specifying the window object when we want to open a new wind...
阅读全文 | 评论次数(0) | 浏览次数(684) | 所属类型(心得体会)

[2009-09-03 13:06] 遍历html文档标签(跨浏览器)

<?xml version="1.0" encoding="gb2312"?>
<!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>
  <title>ObjDocument</title>
  <meta http-equiv="generator" content="CoffeeCup HT...
阅读全文 | 评论次数(0) | 浏览次数(686) | 所属类型(心得体会)
页码数(1):  1