易截截图软件、单文件、免安装、纯绿色、仅160KB

javascript 数据库取数据 全选和反选

    javascript所对应的全选和反选 。操作数据库记录。
以下是页面代码:
<tr>
<td colspan="6" width="100%">
<table border="2" width="100%">
<tr class="center">
<th width="20%" class="center">
全选/反选<input type="checkbox" name="all"
onclick="ckeckAll(this);">
</th>
<th width="20%" class="center">
箱主
</th>
<th width="20%" class="center">
箱号
</th>
<th width="20%" class="center">
箱型
</th>
<th width="20%" class="center">
箱类
</th>
</tr>
<tbody id="listTable">
<logic:iterate id="ylxhlist" name="lssqdListForm"
property="ylxhlist"
indexId="index">
<%
int i=index.intValue();
%>
<tr>
<th width="20%" class="center">
<html:checkbox property="checkbox1" name="ylxhlist"
value="true" indexed="true"/>
<html:hidden name="ylxhlist" property="id" indexed="true"
/>
<html:hidden name="ylxhlist" property="zbid"
indexed="true" />
<html:hidden name="ylxhlist" property="xxdm"
indexed="true" />
<html:hidden name="ylxhlist" property="xldm"
indexed="true" />
<html:hidden name="ylxhlist" property="ztmc"
indexed="true" />
<html:hidden na


相关文档:

JavaScript捕获窗口关闭事件

JavaScript捕获窗口关闭事件
关键字: window.close事件
javascript捕获窗口关闭事件有两种方法
1.用javascript重新定义 window.onbeforeunload()  事件
在javascript里定义一个函数即可
function  window.onbeforeunload()  {  alert("关闭窗口")}
alert()事件将会在关闭窗口前执行,你也可以用 ......

如何屏蔽javascript的错误信息

如何屏蔽javascript的错误信息:
 
只要在页面中加入如下代码即可:
<SCRIPT LANGUAGE='JavaScript'>
<!--
//屏蔽js错误
 function ResumeError() {
 return true;
 }
 window.onerror = ResumeError;
 // -->
</SCRIPT> ......

SQL语句在JavaScript中的应用

最近一直在用javascript在做项目
可是做着做着
感觉很多功能代码都是重复的。
比如对javascript数组的排序
还有对数组数据的删选以及分组
所以,后来兴致以上来。
一发不可收拾。
写了一个能在javascript中应用的 SQL 库
后来又想,怎么不能用javascript直接连接数据库呢?
又做了一个javascript直连Sql数据的类库 ......

Javascript : JSQL,SQL无处不在,

上回说到,操作Object Array
其实还可以这样操作:
var Room = [
            {
                ID: 'bot',
                name: 'test' ......

JavaScript删除数组中指定值的元素

/* 方法:Array.remove(dx)
* 功能:删除数组元素.
* 参数:dx删除元素的下标.
* 返回:在原数组上修改数组
*/
//经常用的是通过遍历,重构数组.
Array.prototype.remove=function(dx)
{
if(isNaN(dx)||dx>this.length){return false;}
for(var i=0,n=0;i<this.length;i++)
{
......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号