截取str的一段字符怎么办啊
/////////////////////
用substr方法
stringvar.substr(start [, length ])
Arguments
stringvar
Required. A string literal or String object from which the substring is extracted.
start
Required. The starting position of the desired substring. The index of the first character in the string is zero.
length
Optional. The number of characters to include in the returned substring.
你这个前面思归已经说过了:
<script language="javascript">
function LostFocus()
{
var e = event.srcElement; //获取触发这个事件的元素,对应你的例子这个e就是id为tbIDNo的TextBox
var str = e.Value; //获取这个元素的值
}
</script>