javaScript(&jQuery)工具及相应网站资料
1.Dean Edwards编写的Packer(http://dean.edwards.name/packer/),用于压缩JavaScript
2.获取JQuery:http:/jquery.com
http://docs.jquery.com/Downloading_jQuery 下载各个版本及相应帮助文件
3.开发工具和插件
①要使用Dreamweaver支持jQuery自动提示代码功能。
在http://xtnd.us/dreamweaver/jquery下载一个名为jQuery_API.mxp的插件。
在Dreamweaver中依次选择“命令”→“扩展管理”→“jQuery_API.mxp”命令后,就自动安装插件了。
如果Dreamweaver没有扩展功能,可以在http://www.adobe.com/cn/exchange/下载相应软件
②aptana
apatana是一个功能非常强大、开源和专注于javascript的ajax开发IDE。
通过扩展后,可以作为adob air iPhone和nakia等的开发工具
下载网址:http://www.aptana.com
安装教程:http://www.aptana.com/docs/index.php/Getting_started_with_aptana_and_jquery
③ Visual Studio 2008
补丁:http://code.msdn.microsoft.com/KB958502/Release/ProjectReleases.aspx?ReleaseId=1736
补丁安装好后,下载jQuery-1.3.1-vsdoc.js :http://jqueryjs.googlecode.com/files/jquery-1.3.1-vsdoc.js
把jquery-1.3.1-vsdoc.js与jQuery-1.3.1.js文件放在同一个文件夹下。
这样vs2008就能有智能代码提示了功能了
相关文档:
1. 某些基类如果不直接使用,而仅仅只是用于给子类提供通用的函数,这种情况下,基类被看作抽象类.
2. 在 javascript 的类中所有的方法和属性都是"公用的".
3. javascript 中的继承并不是明确规定的,而是通过模仿来实现的.有以下方法:
(1). 对象冒充
function A(sColor){
this.color = sColor;
this.showColo ......
with(document)
{
write ("test");
write
("dsasfda");
}
上面是用了with
如果不用的话就要这样写了
document.write (" ......
JavaScript中没有Trim函数,VBScript语言中才有这个函数,就是去掉字符串头和尾的空格。可以在JavaScript中这么写一个:
<script language="JavaScript">
//此处为string类添加三个成员
String.prototype.Trim = function(){ return Trim(this);}
String.prototype.LTrim = function(){return LTrim( ......
<script language="javascript" type="text/javascript">
var fullDate23=new Date();
var dateString22=new Date(fullDate23.getYear(),(fullDate23.getMonth()),fullDate23.getDate());
var dateString23=new Date(dateString22.valueOf()+1*24*60*60*1000);"&vbcrlf&_
var showDateString1=dateStri ......
貌似CSDN里的都是专业人士,高手可以掠过了,呵呵。
一下是源码:
<!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>
<meta http-equiv="Content-Type" content ......