extremecomponents.js.svn-base

来自「一个实用的CMS管理」· SVN-BASE 代码 · 共 32 行

SVN-BASE
32
字号
function getParameterMap(form) {    var p = document.forms[form].elements;    var map = new Object();    for(var x=0; x < p.length; x++) {        var key = p[x].name;        var val = p[x].value;                //Check if this field name is unique.        //If the field name is repeated more than once        //add it to the current array.        var curVal = map[key];         if (curVal) { // more than one field so append value to array        	curVal[curVal.length] = val;        } else { // add field and value        	map[key]= [val];        }    }    return map;}function setFormAction(form, action, method) {	if (action) {		document.forms[form].setAttribute('action', action);	}		if (method) {		document.forms[form].setAttribute('method', method);	}		document.forms[form].ec_eti.value='';}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?