- 浏览: 103278 次
- 性别:
- 来自: 上海
文章分类
最新评论
-
u013246812:
谢谢博主帮我解决了问题,就是那个process.exitVal ...
Java执行Shell脚本超时控制 -
fireinjava:
fireinjava 写道配置好多哦 =.=
刚看了下,原来是 ...
Java Spring2.5 Remote Invoke HTTP Invoker -
fireinjava:
配置好多哦 =.=
Java Spring2.5 Remote Invoke HTTP Invoker -
lee79:
呵呵,讲的很对
Java执行Shell脚本超时控制 -
fangwei:
非常感谢!!!btw 你虽然用到了slf4j,却没有用到它的强 ...
Java执行Shell脚本超时控制
1. select
1) Clear Select Options Fast
//ref: http://www.somacon.com/p542.php //The following Javascript functions are hereby granted to the public domain. Read below for how to implement these functions. // Standard javascript function to clear all the options in an HTML select element // In this method, you provide the id of the select dropdown box function ClearOptions(id) { document.getElementById(id).options.length = 0; } // Standard javascript function to clear all the options in an HTML select element // In this method, you just provide the form name and dropdown box name function ClearOptionsAlt(FormName, SelectName) { document.forms[FormName].elements[SelectName].options.length = 0; } // Fast javascript function to clear all the options in an HTML select element // Provide the id of the select element // References to the old <select> object will become invalidated! // This function returns a reference to the new select object. function ClearOptionsFast(id) { var selectObj = document.getElementById(id); var selectParentNode = selectObj.parentNode; var newSelectObj = selectObj.cloneNode(false); // Make a shallow copy selectParentNode.replaceChild(newSelectObj, selectObj); return newSelectObj; } // This is an alternative, simpler method. Thanks to Victor T. // It does not appear to be as fast as the ClearOptionsFast method in FF 3.6. function ClearOptionsFastAlt(id) { document.getElementById(id).innerHTML = ""; }
2) Add/remove options to/from a select list
//ref: http://blog.pothoven.net/2006/10/addremove-options-tofrom-select-list.html // addSelectOption // // Add the single select option to the selection list with the id specified // function addSelectOption(selectId, value, display) { if (display == null) { display = value; } var anOption = document.createElement('option'); anOption.value = value; anOption.innerHTML = display; document.getElementById(selectId).appendChild(anOption); return anOption; } // removeSelectOption // // Remove the option with the specified value from the list of options // in the selection list with the id specified // function removeSelectOption(selectId, value) { var select = document.getElementById(selectId); var kids = select.childNodes; var numkids = kids.length; for (var i = 0; i < numkids; i++) { if (kids[i].value == value) { select.removeChild(kids[i]); break; } } }
3)Move options up and down select lists
<select id="orderedList" multiple="multiple"></select> <img src="moveup.gif" alt="Move Up" onclick="moveOptionsUp('orderedList')" /> <img src="movedown.gif" alt="Move Down" onclick="moveOptionsDown('orderedList')" /> // moveOptionsUp // // move the selected options up one location in the select list // function moveOptionsUp(selectId) { var selectList = document.getElementById(selectId); var selectOptions = selectList.getElementsByTagName('option'); for (var i = 1; i < selectOptions.length; i++) { var opt = selectOptions[i]; if (opt.selected) { selectList.removeChild(opt); selectList.insertBefore(opt, selectOptions[i - 1]); } } } // moveOptionsDown // // move the selected options down one location in the select list // function moveOptionsDown(selectId) { var selectList = document.getElementById(selectId); var selectOptions = selectList.getElementsByTagName('option'); for (var i = selectOptions.length - 2; i >= 0; i--) { var opt = selectOptions[i]; if (opt.selected) { var nextOpt = selectOptions[i + 1]; opt = selectList.removeChild(opt); nextOpt = selectList.replaceChild(opt, nextOpt); selectList.insertBefore(nextOpt, opt); } } }
4)Moving Options between two Select list boxes
<script language="JavaScript" type="text/javascript"> <!-- //ref: http://www.mredkj.com/tutorials/tutorial_mixed2b.html var NS4 = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) < 5); function addOption(theSel, theText, theValue) { var newOpt = new Option(theText, theValue); var selLength = theSel.length; theSel.options[selLength] = newOpt; } function deleteOption(theSel, theIndex) { var selLength = theSel.length; if(selLength>0) { theSel.options[theIndex] = null; } } function moveOptions(theSelFrom, theSelTo) { var selLength = theSelFrom.length; var selectedText = new Array(); var selectedValues = new Array(); var selectedCount = 0; var i; // Find the selected Options in reverse order // and delete them from the 'from' Select. for(i=selLength-1; i>=0; i--) { if(theSelFrom.options[i].selected) { selectedText[selectedCount] = theSelFrom.options[i].text; selectedValues[selectedCount] = theSelFrom.options[i].value; deleteOption(theSelFrom, i); selectedCount++; } } // Add the selected text/values in reverse order. // This will add the Options to the 'to' Select // in the same order as they were in the 'from' Select. for(i=selectedCount-1; i>=0; i--) { addOption(theSelTo, selectedText[i], selectedValues[i]); } if(NS4) history.go(0); } //--> </script>
5) Select list - Add/Remove Options (DOM)
<script language="JavaScript" type="text/javascript"> <!-- //ref: http://www.mredkj.com/tutorials/tutorial005.html var count1 = 0; var count2 = 0; function insertOptionBefore(num) { var elSel = document.getElementById('selectX'); if (elSel.selectedIndex >= 0) { var elOptNew = document.createElement('option'); elOptNew.text = 'Insert' + num; elOptNew.value = 'insert' + num; var elOptOld = elSel.options[elSel.selectedIndex]; try { elSel.add(elOptNew, elOptOld); // standards compliant; doesn't work in IE } catch(ex) { elSel.add(elOptNew, elSel.selectedIndex); // IE only } } } function removeOptionSelected() { var elSel = document.getElementById('selectX'); var i; for (i = elSel.length - 1; i>=0; i--) { if (elSel.options[i].selected) { elSel.remove(i); } } } function appendOptionLast(num) { var elOptNew = document.createElement('option'); elOptNew.text = 'Append' + num; elOptNew.value = 'append' + num; var elSel = document.getElementById('selectX'); try { elSel.add(elOptNew, null); // standards compliant; doesn't work in IE } catch(ex) { elSel.add(elOptNew); // IE only } } function removeOptionLast() { var elSel = document.getElementById('selectX'); if (elSel.length > 0) { elSel.remove(elSel.length - 1); } } //--> </script>
6)Listbox options javascript select all,move left-right, move up-dow
//ref: http://viralpatel.net/blogs/listbox-select-all-move-left-right-up-down-javascript/ function listbox_selectall(listID, isSelect) { var listbox = document.getElementById(listID); for(var count=0; count < listbox.options.length; count++) { listbox.options[count].selected = isSelect; } } function listbox_move(listID, direction) { var listbox = document.getElementById(listID); var selIndex = listbox.selectedIndex; if(-1 == selIndex) { alert("Please select an option to move."); return; } var increment = -1; if(direction == 'up') increment = -1; else increment = 1; if((selIndex + increment) < 0 || (selIndex + increment) > (listbox.options.length-1)) { return; } var selValue = listbox.options[selIndex].value; var selText = listbox.options[selIndex].text; listbox.options[selIndex].value = listbox.options[selIndex + increment].value listbox.options[selIndex].text = listbox.options[selIndex + increment].text listbox.options[selIndex + increment].value = selValue; listbox.options[selIndex + increment].text = selText; listbox.selectedIndex = selIndex + increment; } function listbox_moveacross(sourceID, destID) { var src = document.getElementById(sourceID); var dest = document.getElementById(destID); for(var count=0; count < src.options.length; count++) { if(src.options[count].selected == true) { var option = src.options[count]; var newOption = document.createElement("option"); newOption.value = option.value; newOption.text = option.text; newOption.selected = true; try { dest.add(newOption, null); //Standard src.remove(count, null); }catch(error) { dest.add(newOption); // IE only src.remove(count); } count--; } } }
发表评论
-
Spring声明式事务管理与配置详解
2015-08-18 09:00 01、Spring声明式事务配置的五种方式 前段时间对 ... -
Log4j的配置与使用详解
2015-08-18 08:44 7281、介绍 Log4j是Apache的一个开放源代码项目 ... -
Web.xml
2015-08-18 08:35 389web.xml文件详解 前言:一般的 ... -
Spring Filter
2015-08-18 08:23 4741、简介 Filter也称 ... -
springSecurity源码分析——DelegatingFilterProxy类的作用
2014-12-16 13:56 666http://www.cnblogs.com/hzhu ... -
spring data jpa 中的OpenEntityManagerInViewFilter 取代OpenSessionInViewFilter
2014-12-05 13:52 0http://blog.csdn.net/lzwglory/ ... -
servlet tomcat web.xml配备信息说明
2014-12-05 13:50 0servlet tomcat web.xml配置信息说明 ... -
Spring IntrospectorCleanupListener
2014-12-05 12:40 627spring中提供了一个名为 org.springfr ... -
Spring IOC容器实例化Bean的方式与RequestContextListener应用
2014-12-05 12:35 1031spring IOC容器实例化Be ... -
SpringBean的5种作用域
2014-12-05 12:33 756org.springframework.web.contex ... -
Lobback日志文件
2014-12-05 12:29 1137Logback是由log4j创始人Ceki Gülcü设计的 ... -
Prototype Study (转)
2012-08-05 16:49 753什么是Prototype Prototype 是由 S ... -
Prototype Element
2012-08-05 16:46 8971. select <select name=&q ... -
IE Firefox 一些组件的特殊处理
2012-07-29 09:04 8441、html alt 在IE下控件的alt属性使用赋值后,当 ... -
log4j 自动生成 appender
2011-05-04 21:55 1631一般log4j的配置是通过log4j.properties或x ... -
Java ASP Post
2011-03-06 20:32 1151用Java编写的模拟ASP Post请求写的一个上海的违章查询 ... -
Java Spring2.5 Remote Invoke HTTP Invoker
2011-03-06 20:16 2630近日,一个项目涉及到 ... -
Java Spring1.2 Remote Invoke HTTP Invoker
2011-02-25 09:12 1260近日,一个项目涉及到系统间接口调用,考虑到系统间用的都是jav ... -
File Encoding Converter
2009-11-13 16:52 1642在Java应用开发中,经常会遇到不同的开发人员的IDE设置的文 ... -
When Runtime.exec() won't
2009-07-02 12:31 1019As part of the Java language, t ...
相关推荐
html element. 网页设计,标准html element,
不用脚手架,无需创建vue工程 若element-ui显示故障: 1.查看是否引用 <!--引入 element-ui 的样式,--> ...2.html代码是否被div包含 3.是否 var Ctor = Vue.extend(Main) new Ctor().$mount('#app')
HTML-element.zip
html+css侧边抽屉式导航栏
element-ui动态渲染表格
element深色系资源案例,配置深色系vue+element,可在element官网的主题中上传配置文件config.json,就能看到深色系的配置效果,同时可以再项目中引入该资源,实现动态换肤
MoveElementJS 给指定HTML元素添加移动(拖拽)功能
静态Html、jsp、php等使用element ui 的最简单直观联系,含table样例/对话框样例及所有 js css和图标,学习前台框架很好的入门资源
本地引用示例: <!DOCTYPE html> <html> ... <link rel="stylesheet" href="/my/html/element-ui/lib/theme-chalk/index.css"> <el-col :span="24"><div class="myclass"></div></el-col> </el-row>
4. Select any HTML element in "Element" panel and corresponding properties are displayed in "SelAssist" sidebar pane. Using SelAssist panel - 1. Same as first step above. 2. Select 'SelAssist' panel...
Element UI 完整版 源码 可用 vue+Element-UI 前端框架
element-ui源码,element-ui组件二开,element-ui 抽组件源码独立使用
支持开始时间和结束时间联动,从VUE和element UI框架中拆分出来的。可以作为一个插件,单独引入到你需要的单个页面中。。UI界面很美观。功能强大。
国外的HTML“作弊”文档,涵盖内容广泛。
HTML+CSS中完全的行内元素(inline element)和块元素(block element) 完整的
Element UI 组件库、前端框架、UI框架、表单、数据、html、前端代码、js、css 适用范围:PC端,前端页面展示 适用软件: H-builder 、VSCode、WebStrom、HbuilderX等前端开发软件 文件类型: .html Element UI 组件...
element-ui离线包资源,页面内引用element ui的js 及css离线版.方便内网使用.
搞这么一个文件主要是我不想安装npm安装,或者说网址引用Vue.js和Element-ui的网址引用。所以就从他们的官网文件夹里直接把js,css,和图标文件复制下来整理了一下,Elementui的模组都可以正常使用和呈现出来。我...
下载后,放在plugin文件夹里,需要则直接 <link rel="stylesheet" href="../../plugins/element-ui/index.css"> <script src="../../plugins/element-ui/index.js"> 引入即可
professional web designer, or a recreational webmaster with a dynamic web site, this will be the book that you use whenever you need to know how to use a particular HTML element, JavaScript object, ...