请教大神这是什么歌懂JS或者DES大神帮忙看下如何处理,先

不好意思,找大神看一下,能帮忙解决不? - ThinkPHP框架
&div&class=&panel-body&&
&&&&&&&&&&&&&&&&&&&&&form&action=&{:U('Cate/Catesort')}&&method=&post&&
&&&&&&&&&&&&&&&&&&&&&table&class=&table&table-hover&table-bordered&table-condensed&&
&&&&&&&&&&&&&&&&&&&&&&&&&tr&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&序号&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&名称&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&级别&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&排序&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&操作&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&/tr&
&&&&&&&&&&&&&&&&&&&&&&&&&volist&name='cate'&id=&vo&&
&&&&&&&&&&&&&&&&&&&&&&&&&tr&level=&{$vo['level']}&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&{$vo['id']}&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&
&a&href=&#&&class=&zd&&[+]&/a&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&{$vo['html']}{$vo['name']}&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&{$vo['level']}&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&
&&&&&&&&&&&&&&&&&&&&&&&&&div&class=&form-group&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&div&class=&col-sm-5&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&input&type=&text&&class=&form-control&&placeholder=&排序&&name=&sort&&id=&ruleTitle&&value=&{$v.sort}&/&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&/div&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&label&class=&col-sm-2&control-label&&&/label&
&&&&&&&&&&&&&&&&&&&&&&&&&/div&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&div&class=&btn-group&btn-group-xs&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&a&href=&{:U('Cate/addCate',array('pid'=&$vo['id']))}&&class=&btn&btn-sm&btn-info&mhm&&添加子栏目&/a&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&a&href=&{:U('Cate/edit',array('id'=&$vo['id']))}&&class=&btn&btn-warning&&修改&/a&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&a&href=&{:U('Cate/delCate',array('id'=&$vo['id']))}&&class=&btn&btn-danger&&删除&/a&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&/div&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&/tr&
&&&&&&&&&&&&&&&&&&&&&&&&&/volist&
&&&&&&&&&&&&&&&&&&&&&&&&&tr&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&colspan='7'&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&div&class=&form-group&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&label&class=&col-sm-5&control-label&&&/label&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&div&class=&col-sm-5&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&button&type=&submit&&class=&btn&btn-success&btn-add&&提交&/button&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&/div&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&
&&&&&&&&&&&&&&&&&&&&&&&&&/div&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&/tr&
&&&&&&&&&&&&&&&&&&&&&&&&&tr&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&colspan='7'&{$page}&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&/tr&
&&&&&&&&&&&&&&&&&&&&&/table&
&&&&&&&&&&&&&&&&&&&&&/form&
&&&&&&&&&&&&&&&&&/div&&script&
$(&input[name=selall]&).click(function(){
&&&&//&先取出当前chkbox的状态
&&&&var&check&=&$(this).attr(&checked&);
&&&&//&设置所有其他的状态和当前按钮相同
&&&&$(&.delids&).attr(&checked&,&check);
//&选出所有的a标签绑定click事件
$(&.zd&).click(function(){
&&&&//&先取出所在的tr
&&&&var&tr&=&$(this).parent().parent();
&&&&//&取出当前行的level值
&&&&var&level&=&parseInt(tr.attr(&level&));
&&&&if($(this).html()&==&'[-]')
&&&&&&&&//&把所有的子类折叠起来
&&&&&&&&//&取出后面所有的TR
&&&&&&&&tr.nextAll(&tr&).each(function(k,&v){
&&&&&&&&&&&&$(this).find(&.zd&).html(&[+]&);
&&&&&&&&&&&&if(parseInt($(this).attr(&level&))&&&level)
&&&&&&&&&&&&{
&&&&&&&&&&&&&&&&$(this).hide();
&&&&&&&&&&&&}
&&&&&&&&&&&&else
&&&&&&&&&&&&&&&&return&&//&直到一个LEVEL和当前LEVEL值相同的TR就退出循环
&&&&&&&&});
&&&&&&&&$(this).html('[+]');
&&&&&&&&//&把所有的子类折叠起来
&&&&&&&&//&取出后面所有的TR
&&&&&&&&tr.nextAll(&tr&).each(function(k,&v){
&&&&&&&&&&&&if(parseInt($(this).attr(&level&))&==&level+1)
&&&&&&&&&&&&{
&&&&&&&&&&&&&&&&$(this).show();
&&&&&&&&&&&&}
&&&&&&&&&&&&else
&&&&&&&&&&&&&&&&return&&//&直到一个LEVEL和当前LEVEL值相同的TR就退出循环
&&&&&&&&});
&&&&&&&&$(this).html('[-]');
&/script&结果是这样的:&div&class=&panel-body&&
&&&&&&&&&&&&&&&&&&&&&form&action=&/Demon/index.php/Admin/Cate/Catesort.html&&method=&post&&
&&&&&&&&&&&&&&&&&&&&&table&class=&table&table-hover&table-bordered&table-condensed&&
&&&&&&&&&&&&&&&&&&&&&&&&&tr&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&序号&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&名称&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&级别&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&排序&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&操作&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&/tr&
&&&&&&&&&&&&&&&&&&&&&&&&&tr&level=&1&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&1&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&
&a&href=&#&&class=&zd&&[+]&/a&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&CSS&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&1&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&
&&&&&&&&&&&&&&&&&&&&&&&&&div&class=&form-group&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&div&class=&col-sm-5&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&input&type=&text&&class=&form-control&&placeholder=&排序&&name=&sort&&id=&ruleTitle&&value=&&/&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&/div&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&label&class=&col-sm-2&control-label&&&/label&
&&&&&&&&&&&&&&&&&&&&&&&&&/div&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&div&class=&btn-group&btn-group-xs&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&a&href=&/Demon/index.php/Admin/Cate/addCate/pid/1.html&&class=&btn&btn-sm&btn-info&mhm&&添加子栏目&/a&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&a&href=&/Demon/index.php/Admin/Cate/edit/id/1.html&&class=&btn&btn-warning&&修改&/a&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&a&href=&/Demon/index.php/Admin/Cate/delCate/id/1.html&&class=&btn&btn-danger&&删除&/a&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&/div&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&/tr&&tr&level=&2&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&3&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&
&a&href=&#&&class=&zd&&[+]&/a&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&|_css2.0&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&2&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&
&&&&&&&&&&&&&&&&&&&&&&&&&div&class=&form-group&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&div&class=&col-sm-5&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&input&type=&text&&class=&form-control&&placeholder=&排序&&name=&sort&&id=&ruleTitle&&value=&&/&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&/div&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&label&class=&col-sm-2&control-label&&&/label&
&&&&&&&&&&&&&&&&&&&&&&&&&/div&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&div&class=&btn-group&btn-group-xs&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&a&href=&/Demon/index.php/Admin/Cate/addCate/pid/3.html&&class=&btn&btn-sm&btn-info&mhm&&添加子栏目&/a&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&a&href=&/Demon/index.php/Admin/Cate/edit/id/3.html&&class=&btn&btn-warning&&修改&/a&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&a&href=&/Demon/index.php/Admin/Cate/delCate/id/3.html&&class=&btn&btn-danger&&删除&/a&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&/div&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&/tr&&tr&level=&1&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&2&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&
&a&href=&#&&class=&zd&&[+]&/a&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&JS&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&1&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&
&&&&&&&&&&&&&&&&&&&&&&&&&div&class=&form-group&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&div&class=&col-sm-5&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&input&type=&text&&class=&form-control&&placeholder=&排序&&name=&sort&&id=&ruleTitle&&value=&&/&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&/div&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&label&class=&col-sm-2&control-label&&&/label&
&&&&&&&&&&&&&&&&&&&&&&&&&/div&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&div&class=&btn-group&btn-group-xs&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&a&href=&/Demon/index.php/Admin/Cate/addCate/pid/2.html&&class=&btn&btn-sm&btn-info&mhm&&添加子栏目&/a&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&a&href=&/Demon/index.php/Admin/Cate/edit/id/2.html&&class=&btn&btn-warning&&修改&/a&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&a&href=&/Demon/index.php/Admin/Cate/delCate/id/2.html&&class=&btn&btn-danger&&删除&/a&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&/div&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&/tr&&tr&level=&2&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&4&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&
&a&href=&#&&class=&zd&&[+]&/a&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&|_JQ&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&2&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&
&&&&&&&&&&&&&&&&&&&&&&&&&div&class=&form-group&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&div&class=&col-sm-5&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&input&type=&text&&class=&form-control&&placeholder=&排序&&name=&sort&&id=&ruleTitle&&value=&&/&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&/div&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&label&class=&col-sm-2&control-label&&&/label&
&&&&&&&&&&&&&&&&&&&&&&&&&/div&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&div&class=&btn-group&btn-group-xs&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&a&href=&/Demon/index.php/Admin/Cate/addCate/pid/4.html&&class=&btn&btn-sm&btn-info&mhm&&添加子栏目&/a&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&a&href=&/Demon/index.php/Admin/Cate/edit/id/4.html&&class=&btn&btn-warning&&修改&/a&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&a&href=&/Demon/index.php/Admin/Cate/delCate/id/4.html&&class=&btn&btn-danger&&删除&/a&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&/div&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&/tr&&tr&level=&1&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&5&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&
&a&href=&#&&class=&zd&&[+]&/a&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&PHP&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&1&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&
&&&&&&&&&&&&&&&&&&&&&&&&&div&class=&form-group&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&div&class=&col-sm-5&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&input&type=&text&&class=&form-control&&placeholder=&排序&&name=&sort&&id=&ruleTitle&&value=&&/&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&/div&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&label&class=&col-sm-2&control-label&&&/label&
&&&&&&&&&&&&&&&&&&&&&&&&&/div&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&div&class=&btn-group&btn-group-xs&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&a&href=&/Demon/index.php/Admin/Cate/addCate/pid/5.html&&class=&btn&btn-sm&btn-info&mhm&&添加子栏目&/a&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&a&href=&/Demon/index.php/Admin/Cate/edit/id/5.html&&class=&btn&btn-warning&&修改&/a&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&a&href=&/Demon/index.php/Admin/Cate/delCate/id/5.html&&class=&btn&btn-danger&&删除&/a&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&/div&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&/tr&&tr&level=&2&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&6&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&
&a&href=&#&&class=&zd&&[+]&/a&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&|_面向对象&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&2&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&
&&&&&&&&&&&&&&&&&&&&&&&&&div&class=&form-group&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&div&class=&col-sm-5&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&input&type=&text&&class=&form-control&&placeholder=&排序&&name=&sort&&id=&ruleTitle&&value=&&/&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&/div&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&label&class=&col-sm-2&control-label&&&/label&
&&&&&&&&&&&&&&&&&&&&&&&&&/div&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&div&class=&btn-group&btn-group-xs&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&a&href=&/Demon/index.php/Admin/Cate/addCate/pid/6.html&&class=&btn&btn-sm&btn-info&mhm&&添加子栏目&/a&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&a&href=&/Demon/index.php/Admin/Cate/edit/id/6.html&&class=&btn&btn-warning&&修改&/a&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&a&href=&/Demon/index.php/Admin/Cate/delCate/id/6.html&&class=&btn&btn-danger&&删除&/a&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&/div&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&/tr&&tr&level=&1&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&7&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&
&a&href=&#&&class=&zd&&[+]&/a&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&LINUX&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&1&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&
&&&&&&&&&&&&&&&&&&&&&&&&&div&class=&form-group&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&div&class=&col-sm-5&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&input&type=&text&&class=&form-control&&placeholder=&排序&&name=&sort&&id=&ruleTitle&&value=&&/&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&/div&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&label&class=&col-sm-2&control-label&&&/label&
&&&&&&&&&&&&&&&&&&&&&&&&&/div&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&div&class=&btn-group&btn-group-xs&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&a&href=&/Demon/index.php/Admin/Cate/addCate/pid/7.html&&class=&btn&btn-sm&btn-info&mhm&&添加子栏目&/a&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&a&href=&/Demon/index.php/Admin/Cate/edit/id/7.html&&class=&btn&btn-warning&&修改&/a&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&a&href=&/Demon/index.php/Admin/Cate/delCate/id/7.html&&class=&btn&btn-danger&&删除&/a&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&/div&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&/tr&&&&&&&&&&&&&&&&&&&&&&&&&&tr&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&colspan='7'&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&div&class=&form-group&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&label&class=&col-sm-5&control-label&&&/label&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&div&class=&col-sm-5&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&button&type=&submit&&class=&btn&btn-success&btn-add&&提交&/button&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&/div&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&
&&&&&&&&&&&&&&&&&&&&&&&&&/div&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&/tr&
&&&&&&&&&&&&&&&&&&&&&&&&&tr&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&td&colspan='7'&&/td&
&&&&&&&&&&&&&&&&&&&&&&&&&/tr&
&&&&&&&&&&&&&&&&&&&&&/table&
&&&&&&&&&&&&&&&&&&&&&/form&
&&&&&&&&&&&&&&&&&/div&
&&&&&&&&&&&&&/div&
&&&&&&&&&/div&
$(&input[name=selall]&).click(function(){
&&&&//&先取出当前chkbox的状态
&&&&var&check&=&$(this).attr(&checked&);
&&&&//&设置所有其他的状态和当前按钮相同
&&&&$(&.delids&).attr(&checked&,&check);
//&选出所有的a标签绑定click事件
$(&.zd&).click(function(){
&&&&//&先取出所在的tr
&&&&var&tr&=&$(this).parent().parent();
&&&&//&取出当前行的level值
&&&&var&level&=&parseInt(tr.attr(&level&));
&&&&if($(this).html()&==&'[-]')
&&&&&&&&//&把所有的子类折叠起来
&&&&&&&&//&取出后面所有的TR
&&&&&&&&tr.nextAll(&tr&).each(function(k,&v){
&&&&&&&&&&&&$(this).find(&.zd&).html(&[+]&);
&&&&&&&&&&&&if(parseInt($(this).attr(&level&))&&&level)
&&&&&&&&&&&&{
&&&&&&&&&&&&&&&&$(this).hide();
&&&&&&&&&&&&}
&&&&&&&&&&&&else
&&&&&&&&&&&&&&&&return&&//&直到一个LEVEL和当前LEVEL值相同的TR就退出循环
&&&&&&&&});
&&&&&&&&$(this).html('[+]');
&&&&&&&&//&把所有的子类折叠起来
&&&&&&&&//&取出后面所有的TR
&&&&&&&&tr.nextAll(&tr&).each(function(k,&v){
&&&&&&&&&&&&if(parseInt($(this).attr(&level&))&==&level+1)
&&&&&&&&&&&&{
&&&&&&&&&&&&&&&&$(this).show();
&&&&&&&&&&&&}
&&&&&&&&&&&&else
&&&&&&&&&&&&&&&&return&&//&直到一个LEVEL和当前LEVEL值相同的TR就退出循环
&&&&&&&&});
&&&&&&&&$(this).html('[-]');
&/script&就是想做成点击一级栏目,打开,再点,折叠~~
积分:2206
ThinkPHP 是一个免费开源的,快速、简单的面向对象的 轻量级PHP开发框架 ,创立于2006年初,遵循Apache2开源协议发布,是为了敏捷WEB应用开发和简化企业应用开发而诞生的。ThinkPHP从诞生以来一直秉承简洁实用的设计原则,在保持出色的性能和至简的代码的同时,也注重易用性。并且拥有众多的原创功能和特性,在社区团队的积极参与下,在易用性、扩展性和性能方面不断优化和改进,已经成长为国内最领先和最具影响力的WEB应用开发框架,众多的典型案例确保可以稳定用于商业以及门户级的开发。『帮忙看一下』相关搜索
(C)2017 列表网&琼ICP备号-12&增值电信业务经营许可证B2-&输入关键字或相关内容进行搜索
* 发送反馈信息
feedback.send = function(content, callback) {
feedback.login(function(user, conn) {
//发送文本消息
var msgText = '问题:' + content.
if (content.contact) {
msgText += '; 联系方式:' + content.contact + ';'
conn.sendTextMessage({
to: CUSTOM_ID,
msg: msgText,
type: &chat&
//如果没有截图
if (!content.images || content.images.length & 1) {
if (callback) callback();
//如果有截图
var sendImageCount = 0;
var hasError =
content.images.forEach(function(fileInputId) {
//alert(fileInputId)
conn.sendPicture({
fileInputId: fileInputId,
to: CUSTOM_ID,
onFileUploadError: function(error) {
//处理图片上传失败
alert(JSON.stringify(error));
hasError =
onFileUploadComplete: function(data) {
//处理图片上传成功,如本地消息显示
sendImageCount++;
if (!hasError && sendImageCount &= content.images.length) {
if (callback) callback();
};conn是啥呀?还有上传的服务器路径在哪里填?万分感谢
要回复问题请先或
关注: 1 人AngularJs调用不到js中定义的directive!求大神帮忙看看
项目目录及html和js代码如下:
遇到的问题:经调试发现并没有调用到directive,是js文件已经引入,并且ng-app等名称核对正确,现在找不到原因为什么没有调用到directive
&!DOCTYPE html&
&html ng="Dir"&
&meta charset="UTF-8"&
&title&directive-top&/title&
&link rel="stylesheet" href="css/bootstrap-3.0.0/css/bootstrap.css"&
&script src="js/angular.js"&&/script&
&script src="js/hi.js"&&/script&
&div class="row"&
&div class="col-md-3"&
&superman power&力量&/superman&
&div class="row"&
&div class="col-md-3"&
&superman power speed&力量速度&/superman&
&div class="row"&
&div class="col-md-3"&
&superman power speed light&力量速度光&/superman&
var sheroModule=angular.module("Dir",[]);
sheroModule.directive('superman',function() {
alert("swwwww");
scope: {},
restrict: 'AE',
controller: function($scope) {
$scope.abilities = [];
this.addPower = function(){
alert("superman--addPower");
$scope.abilities.push("power");
this.addSpeed = function(){
alert("superman--addSpeed")
$scope.abilities.push("Speed");
this.addLight = function(){
alert("superman--addLight")
$scope.abilities.push("light");
link: function(scope,element,attrs){
alert("superman--link");
element.addClass('btn btn-primary');
element.bind("mouseenter", function() {
console.log(scope.abilities);
sheroModule.directive("power",function(){
require:'^superman',
link:function(scope,element,attrs,supermanCtrl){
supermanCtrl.addPower();
sheroModule.directive("speed",function(){
require:'^superman',
link:function(scope,element,attrs,supermanCtrl){
supermanCtrl.addSpeed();
sheroModule.directive("light",function(){
require:'^superman',
link:function(scope,element,attrs,supermanCtrl){
supermanCtrl.addLight();javascript实现des解密加密全过程
代码如下: //Paul Tero, July 2001 //http://www.tero.co.uk/des/ // //Optimised for performance with large blocks by Michael Hayworth, November 2001 // // //THIS SOFTWARE IS PROVIDED "AS IS" AND //ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE //IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE //ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE //FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL //DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS //OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) //HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT //LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY //OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF //SUCH DAMAGE. //des //this takes the key, the message, and whether to encrypt or decrypt function des (key, message, encrypt, mode, iv, padding) { //declaring this locally speeds things up a bit var spfunction1 = new Array (0x,0x04,0x4,0x,0xxx400,0xxxx4,0x404,0xxx00,0xxxx04,0,0x404,0x00,0xx4,0xxxxx400,0xx00,0xx400,0x4,0xx04,0xxxx404,0x,0xx,0x00,0,0x1010004); var spfunction2 = new Array (-0x7fef7fe0,-0x7fff0,0xxx20,-0x7fefffe0,-0x7fff7fe0,-0x7fffffe0,-0x7fef7fe0,-0x7fef0fff000,0x20,-0x7fefffe0,0xxx7fff7fe0,0,-0xx020,-0x7ff020,-0x7fffffe0,0,0xxfefff0,0,0xx7fefffe0,0xx7fff7fe0,-0x7ff0fef0,-0x7ff0fff,-0x7fef7fe0,0xx20,0x0,-0x7fef000,-0x7fffffe0,0xx7fff7fe0,-0x7fffffe0,0xx,-0x7fff0,-0xx7fefffe0,-0x7fef7fe0,0x108000); var spfunction3 = new Array (0x208,0x,0xx,0x08,0xxx08,0xx208,0xx8,0xx200,0x08,0xx00,0xx8,0xx200,0xxxx,0xx200,0x,0,0xxx,0x00,0xxxx208,0xx,0xx20200); var spfunction4 = new Array (0xx1,0x80,0xxxxxxxx81,0,0xxx1,0x000,0xx80,0xx0,0xx1,0x080,0x080,0xx81,0xxxxx81,0,0,0xx080,0xx1,0xx1,0x80,0xx81,0x1,0x001,0x080,0xx0,0xxx80,0xx080); var spfunction5 = new Array (0x100,0xxxx,0xxxx00,0xxxx,0xxxxxx,0xxxxx00,0xx100,0xxxxxxxxxxx100,0xxxxxxx00,0,0xxx); var spfunction6 = new Array (0xxx,0xxxxxxxxxxxxx000,0xx10,0xx,0xxx000,0xxxx10,0xxxxx000,0xxx000,0xxx,0xx10,0x010,0x010,0x,0xxxx); var spfunction7 = new Array (0xxx,0x800,0xxxxx,0xx2,0xxx802,0xxxxxxxxxx800,0x802,0xxx2,0xxxxxxxxxx2,0xxxxxx802,0xxx802,0xxxx,0x2,0x,0xxx800,0xxx800,0x200002); var spfunction8 = new Array (0xx00,0xxxx40,0xx00,0xx0,0x40,0xxxx00,0x0,0,0,0xxxx00,0x00,0xx,0xx40,0xx40,0xxxxxxxxx00,0x0,0x41000); //create the 16 or 48 subkeys we will need var keys = des_createKeys (key); var m=0, i, j, temp, temp2, right1, right2, left, right, var cbcleft, cbcleft2, cbcright, cbcright2 var endloop, var len = message. var chunk = 0; //set up the loops for single and triple des var iterations = keys.length == 32 ? 3 : 9; //single or triple des if (iterations == 3) {looping = encrypt ? new Array (0, 32, 2) : new Array (30, -2, -2);} else {looping = encrypt ? new Array (0, 32, 2, 62, 30, -2, 64, 96, 2) : new Array (94, 62, -2, 32, 64, 2, 30, -2, -2);} //pad the message depending on the padding parameter if (padding == 2) message += " "; //pad the message with spaces else if (padding == 1) {temp = 8-(len%8); message += String.fromCharCode (temp,temp,temp,temp,temp,temp,temp,temp); if (temp==8) len+=8;} //PKCS7 padding else if (!padding) message += "\0\0\0\0\0\0\0\0"; //pad the message out with null bytes //store the result here result = ""; tempresult = ""; if (mode == 1) { //CBC mode cbcleft = (iv.charCodeAt(m++) && 24) | (iv.charCodeAt(m++) && 16) | (iv.charCodeAt(m++) && 8) | iv.charCodeAt(m++); cbcright = (iv.charCodeAt(m++) && 24) | (iv.charCodeAt(m++) && 16) | (iv.charCodeAt(m++) && 8) | iv.charCodeAt(m++); m=0; } //loop through each 64 bit chunk of the message while (m & len) { left = (message.charCodeAt(m++) && 24) | (message.charCodeAt(m++) && 16) | (message.charCodeAt(m++) && 8) | message.charCodeAt(m++); right = (message.charCodeAt(m++) && 24) | (message.charCodeAt(m++) && 16) | (message.charCodeAt(m++) && 8) | message.charCodeAt(m++); //for Cipher Block Chaining mode, xor the message with the previous result if (mode == 1) {if (encrypt) {left ^= right ^=} else {cbcleft2 = cbcright2 = cbcleft = cbcright =}} //first each 64 but chunk of the message must be permuted according to IP temp = ((left &&& 4) ^ right) & 0x0f0f0f0f; right ^= left ^= (temp && 4); temp = ((left &&& 16) ^ right) & 0x0000 right ^= left ^= (temp && 16); temp = ((right &&& 2) ^ left) & 0x; left ^= right ^= (temp && 2); temp = ((right &&& 8) ^ left) & 0x00ff00 left ^= right ^= (temp && 8); temp = ((left &&& 1) ^ right) & 0x; right ^= left ^= (temp && 1); left = ((left && 1) | (left &&& 31)); right = ((right && 1) | (right &&& 31)); //do this either 1 or 3 times for each chunk of the message for (j=0; j& j+=3) { endloop = looping[j+1]; loopinc = looping[j+2]; //now go through and perform the encryption or decryption for (i=looping[j]; i!= i+=loopinc) { //for efficiency right1 = right ^ keys[i]; right2 = ((right &&& 4) | (right && 28)) ^ keys[i+1]; //the result is attained by passing these bytes through the S selection functions temp = left = right = temp ^ (spfunction2[(right1 &&& 24) & 0x3f] | spfunction4[(right1 &&& 16) & 0x3f] | spfunction6[(right1 &&& 8) & 0x3f] | spfunction8[right1 & 0x3f] | spfunction1[(right2 &&& 24) & 0x3f] | spfunction3[(right2 &&& 16) & 0x3f] | spfunction5[(right2 &&& 8) & 0x3f] | spfunction7[right2 & 0x3f]); } temp = left = right = //unreverse left and right } //for either 1 or 3 iterations //move then each one bit to the right left = ((left &&& 1) | (left && 31)); right = ((right &&& 1) | (right && 31)); //now perform IP-1, which is IP in the opposite direction temp = ((left &&& 1) ^ right) & 0x; right ^= left ^= (temp && 1); temp = ((right &&& 8) ^ left) & 0x00ff00 left ^= right ^= (temp && 8); temp = ((right &&& 2) ^ left) & 0x; left ^= right ^= (temp && 2); temp = ((left &&& 16) ^ right) & 0x0000 right ^= left ^= (temp && 16); temp = ((left &&& 4) ^ right) & 0x0f0f0f0f; right ^= left ^= (temp && 4); //for Cipher Block Chaining mode, xor the message with the previous result if (mode == 1) {if (encrypt) {cbcleft = cbcright =} else {left ^= cbcleft2; right ^= cbcright2;}} tempresult += String.fromCharCode ((left&&&24), ((left&&&16) & 0xff), ((left&&&8) & 0xff), (left & 0xff), (right&&&24), ((right&&&16) & 0xff), ((right&&&8) & 0xff), (right & 0xff)); chunk += 8; if (chunk == 512) {result += tempresult = ""; chunk = 0;} } //for every 8 characters, or 64 bits in the message //return the result as an array return result + } //end of des //des_createKeys //this takes as input a 64 bit key (even though only 56 bits are used) //as an array of 2 integers, and returns 16 48 bit keys function des_createKeys (key) { //declaring this locally speeds things up a bit pc2bytes0 = new Array (0,0x4,0xxx04,0xxx200,0x204,0xxx04,0xx); pc2bytes1 = new Array (0,0x1,0xxxxxxx100,0x101,0xxxxxx4100101); pc2bytes2 = new Array (0,0x8,0x800,0x808,0xxxx,0x8,0x800,0x808,0xxxx1000808); pc2bytes3 = new Array (0,0xxxx000,0xxx000,0xxx000,0xx8222000); pc2bytes4 = new Array (0,0x,0xx,0x0,0x0,0x0,0x0,0x41010); pc2bytes5 = new Array (0,0x400,0x20,0x420,0,0x400,0x20,0x420,0xxxxxxxx2000420); pc2bytes6 = new Array (0,0xx,0xxxx,0xx80002); pc2bytes7 = new Array (0,0x,0x00,0x00,0x30800); pc2bytes8 = new Array (0,0xx,0x,0x0002); pc2bytes9 = new Array (0,0xx8,0x,0xx8,0xx400,0xx408,0xx400,0xx408,0x); pc2bytes10 = new Array (0,0x20,0,0x20,0xxxxx0,0x0,0xxxx102020); pc2bytes11 = new Array (0,0xx200,0xxxxxxxxxxxxx5200200); pc2bytes12 = new Array (0,0x00,0x,0x10,0x1010); pc2bytes13 = new Array (0,0x4,0x100,0x104,0,0x4,0x100,0x104,0x1,0x5,0x101,0x105,0x1,0x5,0x101,0x105); //how many iterations (1 for des, 3 for triple des) var iterations = key.length & 8 ? 3 : 1; //changed by Paul 16/6/2007 to use Triple DES for 9+ byte keys //stores the return keys var keys = new Array (32 * iterations); //now define the left shifts which need to be done var shifts = new Array (0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0); //other variables var lefttemp, righttemp, m=0, n=0, for (var j=0; j& j++) { //either 1 or 3 iterations left = (key.charCodeAt(m++) && 24) | (key.charCodeAt(m++) && 16) | (key.charCodeAt(m++) && 8) | key.charCodeAt(m++); right = (key.charCodeAt(m++) && 24) | (key.charCodeAt(m++) && 16) | (key.charCodeAt(m++) && 8) | key.charCodeAt(m++); temp = ((left &&& 4) ^ right) & 0x0f0f0f0f; right ^= left ^= (temp && 4); temp = ((right &&& -16) ^ left) & 0x0000 left ^= right ^= (temp && -16); temp = ((left &&& 2) ^ right) & 0x; right ^= left ^= (temp && 2); temp = ((right &&& -16) ^ left) & 0x0000 left ^= right ^= (temp && -16); temp = ((left &&& 1) ^ right) & 0x; right ^= left ^= (temp && 1); temp = ((right &&& 8) ^ left) & 0x00ff00 left ^= right ^= (temp && 8); temp = ((left &&& 1) ^ right) & 0x; right ^= left ^= (temp && 1); //the right side needs to be shifted and to get the last four bits of the left side temp = (left && 8) | ((right &&& 20) & 0x); //left needs to be put upside down left = (right && 24) | ((right && 8) & 0xff0000) | ((right &&& 8) & 0xff00) | ((right &&& 24) & 0xf0); right = //now go through and perform these shifts on the left and right keys for (var i=0; i & shifts. i++) { //shift the keys either one or two bits to the left if (shifts[i]) {left = (left && 2) | (left &&& 26); right = (right && 2) | (right &&& 26);} else {left = (left && 1) | (left &&& 27); right = (right && 1) | (right &&& 27);} left &= -0 right &= -0 //now apply PC-2, in such a way that E is easier when encrypting or decrypting //this conversion will look like PC-2 except only the last 6 bits of each byte are used //rather than 48 consecutive bits and the order of lines will be according to //how the S selection functions will be applied: S2, S4, S6, S8, S1, S3, S5, S7 lefttemp = pc2bytes0[left &&& 28] | pc2bytes1[(left &&& 24) & 0xf] | pc2bytes2[(left &&& 20) & 0xf] | pc2bytes3[(left &&& 16) & 0xf] | pc2bytes4[(left &&& 12) & 0xf] | pc2bytes5[(left &&& 8) & 0xf] | pc2bytes6[(left &&& 4) & 0xf]; righttemp = pc2bytes7[right &&& 28] | pc2bytes8[(right &&& 24) & 0xf] | pc2bytes9[(right &&& 20) & 0xf] | pc2bytes10[(right &&& 16) & 0xf] | pc2bytes11[(right &&& 12) & 0xf] | pc2bytes12[(right &&& 8) & 0xf] | pc2bytes13[(right &&& 4) & 0xf]; temp = ((righttemp &&& 16) ^ lefttemp) & 0x0000 keys[n++] = lefttemp ^ keys[n++] = righttemp ^ (temp && 16); } } //for each iterations //return the keys we've created
} //end of des_createKeys ////////////////////////////// TEST ////////////////////////////// function stringToHex (s) { var r = "0x"; var hexes = new Array ("0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"); for (var i=0; i&s. i++) {r += hexes [s.charCodeAt(i) && 4] + hexes [s.charCodeAt(i) & 0xf];}
} function hexToString (h) { var r = ""; for (var i= (h.substr(0, 2)=="0x")?2:0; i&h. i+=2) {r += String.fromCharCode (parseInt (h.substr (i, 2), 16));}
} var key = "this is a 24 byte key !!"; var message = "This is a test message"; var ciphertext = des (key, message, 1, 0); document.writeln ("DES Test: " + stringToHex (ciphertext));
顶一下(0) 踩一下(0)
热门标签:}

我要回帖

更多关于 请教大神这是什么歌 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信