1:安装Komodo Edit 4
2:配置环境变量,新建一个系统变量,变量:CATALINA_HOME,值:tomcat的路径,在path变量名中加%CATALINA_HOME%\bin;
3:在Komodo Edit 4开发环境中,Tools>Run Command 新建命令,catalina.bat run
命名为 tomcat运行,新建命令,catalina.bat stop 命名为 tomcat停止,在run in中选择new console
4: 加所需格式,tab键的字符数,加删除一行。
工具栏edit->Preferences->Indentation->4个字符
工具栏e ...
- 10:35
- 浏览 (21)
- 评论 (0)
一、 安装 Cypal Studio工具
a.下载 Cypal Studio http://code.google.com/p/cypal-studio/ ,解压后得到四个jar包 Copy到 Eclipse/plugins目录下。
b.下载gwt 的安装包 http://code.google.com/webtoolkit/download.html,解压到一定的目录下,例:c:C:\Program Files\gwt目录下.
c: 配置 GWT Home目录,打开 Eclipse的 Window—Preferences—Cypal Studio 选择 Gwt的目录。
二、 建立一个名为 ...
获得参数
<body>
<a href="javascript:location.href=location.href + '?a=1&b=2'">search</a>
<script language="JavaScript">
<!--
var a = location.search.substr(1);
if(a.length>0)
{
var re = /([^&]*?)\=([^&]*)/g
var s = a.match(re);
for(var i= 0;i<s.length;i++)
{
alert(s[i]);
alert ...
连接数据库
<script language="javascript">
//用 JavaScript 写服务器端连接数据库的代码示例
var conn = new ActiveXObject("ADODB.Connection");
conn.Open("Provider=SQLOLEDB.1; Data Source=localhost; User ID=sa; "
+"Password=; Initial Catalog=pubs");
var rs = new ActiveXObject("ADODB.Recordset");
var sql="se ...
文档状态改变
<iframe src="a.html" id="f" name="f" scrolling="no" frameborder=0 marginwidth=0 marginheight=0></iframe>
<script>
var doc=window.frames["f"].document;
function s(){
if (doc.readyState=="complete"){
document.all.f.style.height=doc.body.scrollHeight
document.all.f.style.width=doc ...
消除图像工具栏
<IMG SRC="mypicture.jpg" HEIGHT="100px" WIDTH="100px" GALLERYIMG="false">
or
<head>
<meta http-equiv="imagetoolbar" content="no">
</head>
无提示关闭
function Close(){
var ua=navigator.userAgent
var ie=navigator.appName=="Microsoft Internet Explorer"?true:false
if(ie)
{
var IE ...
正则匹配
匹配中文字符的正则表达式: [\u4e00-\u9fa5]
匹配双字节字符(包括汉字在内):[^\x00-\xff]
匹配空行的正则表达式:\n[\s| ]*\r
匹配HTML标记的正则表达式:/<(.*)>.*<\/\1>|<(.*) \/>/
匹配首尾空格的正则表达式:(^\s*)|(\s*$)(像vbscript那样的trim函数)
匹配Email地址的正则表达式:\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*
匹配网址URL的正则表达式:http://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*) ...
document 对象
窗体活动元素
document.activeElement
绑定事件
document.captureEvents(Event.KEYDOWN);
访问窗体元素
document.all("txt").focus();
document.all("txt").select();
窗体命令
document.execCommand
窗体COOKIE
document.cookie
菜单事件
document.oncontextmenu
创建元素
document.createElement("SPAN");
根据鼠标获得元素
document.elementFromPo ...
Event 事件
事件源对象
event.srcElement.tagName
event.srcElement.type
捕获释放
event.srcElement.setCapture();
event.srcElement.releaseCapture();
事件按键
event.keyCode
event.shiftKey
event.altKey
event.ctrlKey
事件返回值
event.returnValue
鼠标位置
event.x
event.y
今天用拉textField,checkbobox组件的disabled属性,我的是一个Form提交,加了此属性后,发现加这个属性的控件值传过去为空,嘿嘿,有点不理解。然后做了改动。
在发请求时,把加这个属性的值通过参数传过去。
updateForm.getForm().submit( waitTitle:"请稍等",
waitMsg:"正在提交表单数据,请稍候....", url:"AuthServer.do?action=updateAuth", method:"post",
params:{
updateIp:Ext.getCmp(' ...







评论排行榜