`
ganjuelovejava
  • 浏览: 91931 次
  • 性别: Icon_minigender_2
  • 来自: 湖南
社区版块
存档分类
最新评论
文章列表
JQuery插件写法的总结 最近Web应用程序中越来越多地用到了JQuery等Web前端技术。这些技术框架有效地改善了用户的操作体验,同时也提高了开发人员构造丰富客户端UI的效率。JQuery本身提供了丰富的操作,但是,有时候我们需要根据我们自己的业务和系统特色(风格)构造一些我们常用的前端UI组件,而JQuery的插件给了我们一个较好的方式来构造这些UI组件,方便我们日后反复重用这些组件。 网上也有很多关于JQuery插件的文章,我也搜了一些,但是,这些文档太过离散,没有有效地组织并充分说明JQuey插件该如何编写,并且有哪几种形式,什么情况下使用哪种形式。下面,我将说明JQuery插件常 ...

jsp

<form action="<%=path%>/upload.do?libId=<%=libId %>&libVersion=<%=libVersion %>" name="navi_addNode_form" id="navi_addNode_form" method="post" enctype="multipart/form-data" target="hiddenFrame"> < ...

上传监听类

package com.huawei.hedex.upload; import java.io.Serializable; /** * 上传监听类,实现OutputStreamListener接口 * @author j65181 * @version V1.0, 2007-8-4 * @see */ public class UploadListener implements OutputStreamListener {     /**      * 注释内容      */     private static final long serialVersionUID = 478 ...

文件上传

private void doFileUpload(HttpSession session, HttpServletRequest request,             HttpServletResponse response) throws IOException     {         try         {             long totalSize = request.getContentLength();                         // 创建UploadListener对象             UploadListener listen ...

琐定窗口

function $getById(id) { return document.getElementById(id); } function lockWindow(myWindow) { // 锁定页面之前,设置select菜单不可用 var sels = document.getElementsByTagName('select'); if (sels.length == 0) { var contentFrame = window.frames['contentFrame']; if (contentFrame != null && contentFrame ...

jstrss样式

/* * jsTree default theme 1.0 * Supported features: dots/no-dots, icons/no-icons, focused, loading * Supported plugins: ui (hovered, clicked), checkbox, contextmenu, search */ .jstree-default li, .jstree-default ins { background-image:url("d.png"); background-repeat:no-repeat; backgro ...
//如果是初次加载就只读出一级节点             Element rootEle = dom.getRootElement();             //点击父节点获取所有的子节点             if(!("0").equals(topicId)){                 //获取当前选定的父节点                 Element node = (Element) rootEle.selectSingleNode(".//topic[@id='" + topicId + "']");   ...
文件比较工具:BCompare 截图取色工具:FSCapture UE编译器工具:UItraEdit-3 was6IBM:IBM Rational Software Architect
<html> <title>table拖动(兼容Firefox 3.5/IE6),固定表格宽度</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <link href="css.css" rel="stylesheet" type="text/css" /> <script type="text/javascrip ...
window.onload=function(){ drag(document.getElementById('drag1')); drag(document.getElementById('drag2')); drag(document.getElementById('drag3')); drag(document.getElementById('drag4')); }; function drag(o,r) { /*取得o.parentNode.parentNode.cells的宽度,兼容IE6和Firefox*/ o.p_p_c_gw=function(index ...
.bg { font-size:12px; /*可能用不到*/ color:#000000;  /*可能用不到*/ table-layout:fixed;/*这个属性可以隐藏文字 */ } /*可以控制不换行*/ .bg td{ font-size:12px;/*可能用不到*/ color:#000000; /*可能用不到*/ text-align:left; /*可能用不到*/ line-height:15px; /*可能用不到*/ height:20px; } /*可能用不到*/ .bg td.tit{ background-color:#e2e2e2; color:# ...
private static String getImg(Element ele)     {         // TODO 添加onclick         String imgCode = "";         // TODO 目前元素间只有元素节点,故使用ele.hasContent();         boolean isFold = ele.hasContent();         if (isFold)         {             String topoicID = ele.attributeValue(Constants.FACTURE ...
public static String getUl(Element ele)     {         String code = "";         if (ele != null)         {             String liCode = "";             List eleList = ele.elements();             for (int i = 0; i < eleList.size(); i++)             {                 Element subEl ...
<script type="text/javascript"> //对节点初始化 $(function () { // All those configuration options are documented in the _docs folder $("#demo") .jstree({ core : {  animation : 1    //折叠速度                    },//点击节点获取子节点          "core" : { "initially_ope ...

jstree添加节点

//生成时间搓作为文档id var id = new Date().getTime().toString(); function uploadSubmit() { //判断上传文件和节点名称是否为空   var AddNodeTextUrl_file = $("#AddNodeTextUrl_file").val();   var AddNodeTextId = $("#AddNodeTextId").val(); if(AddNodeTextUrl_file == ""){    alert(Add_Node_Text ...
Global site tag (gtag.js) - Google Analytics