onblur="this.value = formatNumber(this.value, 0, 0, true)" 这是什么意思啊?

来源:学生作业帮助网 编辑:作业帮 时间:2024/07/30 19:36:00
onblur=
xRN@~&Mjz(?UA@%*DE@ȻzF9y333hhw'ЂfLS)(jj|9hSYL$>fW #aIšTP࿺]Pԕ5m3xkv꒰(WQ64`bY eȿ-0zn=IIH9E蟡;| L@e[fzߏ[˂m*&EAK fpʌT82bon]19:/,_C00,};Ux.&ir 5?V)m8%"H_Og͖u1!wΛ#qd,n 6z1 pScQu'}/뇘m

onblur="this.value = formatNumber(this.value, 0, 0, true)" 这是什么意思啊?
onblur="this.value = formatNumber(this.value, 0, 0, true)" 这是什么意思啊?

onblur="this.value = formatNumber(this.value, 0, 0, true)" 这是什么意思啊?
JavaScript 语言中 onblur是一个HTML控件对应的事件,即“失去焦点”.意思是:当这个控件失去焦点时,执行onblur对应的程序.
this.value 是指控件本身的value属性值,它的值等于formatNumber()函数转换后的值.参数有4个.至于formatNumber()函数有什么作用,要看开发人员是怎么定义这个函数的.字面意思就是格式化数字串.将输入的数字按照制定的格式返回