基于jquery框架实现以行的添加、上移、下移和删除操作
<!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>
<title>上海心源计算机技术有限公司--开发网站一览表</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<script type="text/javascript" src="../js/jquery.js"></script>
<script type="text/javascript">
var num = 2;
//添加账号操作
function addLi()
{
num++;
var htmls = "<li class='li3'>";
htmls = htmls + "<span class='span1'><a class='a1'>账号"+num+":</a></span>";
htmls = htmls + "<span><a class='a1'>账号名称:</a><input type='text' class='input1' name='newName[]' /></span>";
htmls = htmls + "<span class='span2'>";
htmls = htmls