`
Amur
  • 浏览: 12967 次
  • 性别: Icon_minigender_1
  • 来自: 火星
最近访客 更多访客>>
社区版块
存档分类
最新评论
文章列表
http://una.soragoto.net/topics/13.html googling article 简单翻译     经常见到的几个字符集,总结区别如下。   Windows 标准字符集不是Shift_JIS,而是Windows-31J   Shift_JIS是日文的一种字符集,Microsoft的MS-DOS采用Shift_JIS 作为日语标准编码,并命名为CP932(同理GBK相应为CP936,可以在Windows的cmd.exe中输入chcp查看)   开始,Microsoft允许各OEM厂商在CP932的基础上进行扩展,所以造成了各个OEM厂商的字 ...

JVM note2

    博客分类:
  • Java
A heap is a tree data structure where higher levels of the tree always contain greater (or lesser, if it's set up that way) values than lower levels.   Donald Knuth says (The Art of Computer Programming, Third Ed., Vol. 1, p. 435): Several authors began about 1975 to call the pool of availab ...

JVM note1

    博客分类:
  • Java
摘自http://www.javaworld.com/javaworld/jw-07-1997/jw-07-hood.html?page=1 虽然一篇古老的文章,但是受益匪浅。   Each thread is allocated its own stack. Inside the Java virtual machine, each thread is awarded a Java stack, which contains data no other thread can access, including the local variables, parameters, and ...
◆Node.nextSibling:这个属性可以让你访问DOM树同级下的下一个节点。 ◆Node.previousSibling:这个属性可以让你访问DOM树同级下的上一个节点。 遍历DOM时,判断子节点的类型 例如,可以遍历’childNodes’数组并测试它们的’nodeType’   'nodeType’值为 1=>元素节点 2=>属性 3=>文本节点   Document对象的属性和方法   方法 1、document.write() 向文档写 HTML 表达式 或 JavaScript 代码。 2、document.writeln( ...
jQuery小技巧 1.禁止右键点击 $(document).ready(function(){ $(document).bind("contextmenu",function(e){ return false; }); });   2.在新窗口中打开链接 $(document).ready(function() { //Example 1: Every link will open in a new window $('a[href^="http://"]').attr("targ ...
$标记是jQuery的快捷方式。 如果你需要让原始的$起死回生(比如,这之前你的代码使用了Prototype),你可以调用jQuery.noConflict()来恢复它。如果你既 想拥有$的便利,又不希望jQuery跟其他同样使用了全局$函数的代码发生冲突,可遵循jQuery文档所建议的惯用方式: (function($) { // 在这个函数体里,$可作为jQuery的引用 // 很方便,对吧? })(jQuery);  jQuery的方法,本质上可分成三种: 一种可以操作那些符合匹配的元素; 一种可以返回第一个匹配到的对象的值; 一种可以变更被选取的集合。 针对win ...
/* * 因为数据库表很多,而且表名都特别长,如果不注意很容易输入错误。 * 为了输入方便,所以把各个表单词的头文字提取出来,作为输入法的热键 * 热键和实际的表名一一对应,生成一个字典。然后导入输入法。笔者以Google输入法为例。 *  * example: * ehd->ELE_HISTORY_DEFINITION * eccs->ELE_CUSTTRADE_CONTRL_SET */ import java.io.File; import java.io.FileReader; import java.io.LineNumberReader; import java. ...
学习Django,添加一个add.py,出现403 forbidden错误 写道 Forbidden (403) CSRF verification failed. Request aborted. Help Reason given for failure: CSRF token missing or incorrect.   解决方法: 在mysite文件夹下,修改settings.py,添加一行 'django.middleware.csrf.CsrfResponseMiddleware', 即可解决问题. ... MIDDLEWARE_CLASSES = ( ...
Global site tag (gtag.js) - Google Analytics