思路:
("0000" + id).substring(("0000" + id).length - 4)
("0000" + id).substring(("0000" + id).length - 4)
解决方案 »
- jquery或js如何隐藏显示a标签的href
- 谁有好的优化方法,这种写法一点水准都没有
- jquery json 数据类型,求解
- 求验证用户名的正则表达式
- textbox的onblur和button的onclick的问题
- 跪求有关IE、FireFox、Safari 这3个浏览器的javascript的兼容问题,希望大家多多帮助!
- 高分!一段javascript在IE7中无法正常运行,求解!
- 请问实现像CSDN论坛的树型菜单的效果?????????????????????????
- 一个 showModelessDialog 的难题!!
- 求助 有代码 (在线等)
- 右键弹出菜单
- 一段jquery正则表达式取出一段指定的html内容
id=1
tempstr="00000000000000000000"+cstr(id)
response.write right(tempstr,4)
%>
多打几个零,你要多长都有了:)
response.write "<a href='javascript:confirmdel(" & your数据 & ","& CurrentPage&")'><font color=#0000FF>删除</font></a>"
should just work. If they are numeric, how can they have leading zeros anyway?If they do not have leading zeros, and you'd like to specify how many zeros you want, try something likefunction SetLeadingZero(nZero, nNum)
SetLeadingZero = String(nZero,"0") & nNum
end function
response.write "<a href='javascript:confirmdel(" & SetLeadingZero(3, 1) & ","& CurrentPage&")'><font color=#0000FF>删除</font></a>"and