- 博客(7)
- 收藏
- 关注
原创 iconv_test.go
[code="java"]package iconv import ( "testing" ) type iconvTest struct { description string input string inputEncoding string output string outputEncoding string bytesRead int by...
2011-01-30 09:36:28
147
原创 iconv.go,GO编码转换
[code="c++"]/* Wraps the iconv API present on most systems, which allows for conversion of bytes from one encoding to another. This package additionally provides some convenient interface implement...
2011-01-30 09:34:51
504
原创 lua 读取网页
c下面有个著名的curl,libcurl与lua绑在一起就是luacurl,在lua包里例子程序里有curltest.lua测试程序。抓取网页程序得依靠这个库。下面是搜的一段程序,注释是我加的。 curl = require "luacurl" function get_html(url, c) local result = { } if c == nil then...
2011-01-27 12:13:08
2539
原创 javascript 触发事件列表
1.单击事件___onclick 用户单击鼠标按键时产生的事件.同时onclick指定的事件处理程序或代码将被调用执行. 如: 2.改变事件___onchange 当text或textarea元素内的字符值改变或select表格选项状态改变里发生该事件. 如; 3.选中事件____onselect 当text或textarea对象中的文字被选中里会引发该事件 如: ...
2011-01-19 15:57:47
138
原创 JavaScript Map对象的实现
/* * MAP对象,实现MAP功能 * * 接口: * size() 获取MAP元素个数 * isEmpty() 判断MAP是否为空 * clear() 删除MAP所有元素 * put(key, value) 向MAP中增加元素(key, value) * remove(key) 删除指定KEY的元素,成功返回True,失败返回F...
2011-01-19 15:57:08
142
Groovy 使用连续池
//原创作者:bishen //转载注明:http://www.bishen.org 貌似在网上还没有用groovy连接池的文章 [b]首先在tomcat/lib放入数据库驱动[/b] [b]tomcat/config/content.xml 配置连接池名为jdbc/admin[/b] [code="xml"] [/code] [b]在网站的web.xml配置[/b] [code="...
2011-01-19 15:27:44
331
原创 兼容所有浏览器的浮动窗口
function $(id) { return document.getElementById(id); } var LoginUI = !!window.LoginUI || {}; LoginUI.getViewportWidth = function(){ var width=0; if(document.documentElement && doc...
2011-01-19 15:26:42
250
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅