![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JavaScript
samir007
这个作者很懒,什么都没留下…
展开
-
下拉框模拟只读
下拉框模拟只读 //根据下拉框ID设置下拉框只读 function setReadOnly(obj_id){ var obj = document.getElementById(obj_id); obj.onmouseover = function(){ obj.setCapture(); } obj.onmouseout = function(){ obj.rele原创 2009-06-19 12:47:00 · 325 阅读 · 0 评论 -
格式化输出数字
function formatNumber(object,isShowEmpty,precision){ if(typeof(object) == "string"){ object = document.getElementById(object); } if(typeof(object) == "undefined" || object == null){ ale...2009-03-27 12:33:58 · 111 阅读 · 0 评论 -
动态获取表格当前选中的行
test1 //获得当前选中的行 function getSelectedIndex(){ var e = event.target || event.srcElement; var index = e.parentNode.rowIndex; alert(index); return index; } window.onload...2009-03-27 12:47:02 · 535 阅读 · 0 评论