存档

‘javascript’ 分类的存档

介绍一个FireFox下调试网页的工具

2007年1月11日 summer 没有评论

这个FireFox插件,叫做FireBug。

https://addons.mozilla.org/firefox/recommended/ 找到它,点击Install now即可,也可以到 http://www.getfirebug.com/ 下载最新版

它能做的事情:

1、调试javascript,可单步调试。

2、提示网页中的javascript,css,html错误。

3、查看XMLHttp请求。

不知道你看了介绍有没有心动呢?工欲善其事必先利其器。

一个好工具可以Make us work happy :)

分类: javascript, project, web 标签:

javascript format tools

2007年1月9日 summer 1 条评论

收集了几个简单的函数。
格式化时间的函数:
http://www.mattkruse.com/javascript/date/

非常简单的格式化金额的函数:
http://www.rgagnon.com/jsdetails/js-0076.html
ps:看到google上有人搜索”javascript format钱”,哈哈,应该搜索”javascript format money”

分类: javascript 标签:

how to use pagelist tool

2006年11月5日 summer 没有评论

1.Import prototype.js and pagelist.js

 

 

2.define pagelist show node and page content show node

init...
init...

 

3.define callback function getPage and new PageList

 

4.PageList.Slider parameters intorduce

parameters are:element, itemsPerPage, items, width, style, callback

element is the node id of where you wish to display the pagelist.

itemsPerPage is the page size.

items is the count of all your record.

width is display pages number.

style is the selected page's style.

callback is the function of get content function.

分类: javascript 标签: