昨天写 Scala 的时候,使用 match(相当于 switch)时,运行结果很奇怪。var i: Int = 0while (i println("offset: " + items(i)) case logSize => println("logSize: " + items(i)) c...
分类:
其他好文 时间:
2014-07-31 12:11:36
阅读次数:
219
获取页面某一元素的绝对X,Y坐标,相对于浏览器窗体,可以用offset()方法:var X = $('#DivID').offset().top;var Y = $('#DivID').offset().left;获取相对(父元素)位置:var X = $('#DivID').position()....
分类:
Web程序 时间:
2014-07-29 17:05:52
阅读次数:
230
滚动条延迟加载jQuery(function($){ var topicBoxTopHeight = jQuery('#topicBox').offset().top; var topicBoxTopHeight_show = 1 $(window).scroll(function...
分类:
Web程序 时间:
2014-07-28 23:32:54
阅读次数:
238
/*** String 构造方法学习* String(byte[ ] bytes):通过byte数组构造字符串对象。* String(byte[] bytes, int offset, int length) 通过byte数组构造字符串子数组对象* * String(char[ ] value):通...
分类:
编程语言 时间:
2014-07-27 10:10:32
阅读次数:
224
获取绝对位置坐标——offset()方法 var top = $(selector).offset().top; var left = $(selector).offset().left;获取相对位置坐标——position()方法 var top = $(selector).position...
分类:
Web程序 时间:
2014-07-25 13:51:41
阅读次数:
237
有的时候,需要知道SQLSERVER执行了什么语句,可以用下面的方法:SELECT TOP 1000--创建时间QS.creation_time,--查询语句SUBSTRING(ST.text,(QS.statement_start_offset/2)+1,((CASE QS.statement_e...
分类:
数据库 时间:
2014-07-24 22:22:32
阅读次数:
208
oracle中imp命令具体解释 Oracle的导入有用程序(Import utility)同意从数据库提取数据,而且将数据写入操作系统文件。imp使用的基本格式:imp[username[/password[@service]]],下面例举imp经常使用用法。 1. 获取帮助 imp help=y...
分类:
数据库 时间:
2014-07-24 12:08:35
阅读次数:
324
疯狂的暑假学习之 汇编入门学习笔记 (十四)—— 直接定址表
参考: 《汇编语言》 王爽 第16章
1. 描述单元长度的标号
普通的标号:a,b
assume cs:code
code segment
a:db 1,2,3,4,5,6,7,8
b:dw 0
start:
mov si,offset a
mov di,offset b
mov ah,0
mov cx,8
s:
mov al,cs:[si]
add cs:[di],ax
inc si
loop s
mov...
分类:
其他好文 时间:
2014-07-24 10:42:58
阅读次数:
235
using System;using System.Collections.Generic;using WindowsFormsApplication3.Utility;using WindowsFormsApplication3.Model;namespace WindowsFormsApplic...
分类:
其他好文 时间:
2014-07-23 11:47:26
阅读次数:
163
using System;using System.Collections.Generic;using System.Linq;using System.Text;using WindowsFormsApplication3.Utility;using System.Drawing;using Sy...
分类:
其他好文 时间:
2014-07-23 11:45:26
阅读次数:
390