61,112
社区成员
发帖
与我相关
我的任务
分享
<input type="text" value="ABC|BCD|EFD|ZXC|AQW" autofocus="autofocus" onblur="out(this)"/>
<script>
function out(e){
var txt = e.value;
var firstIndex = txt.indexOf("|");
var secondIndex = txt.indexOf("|",firstIndex+1);
var newTxt = txt.substring(secondIndex+1);
e.value = newTxt;
}
</script>