<html>
<script type="text/javascript">
function test(input){
var number = 255;
var hexString = number.toString(16);
alert(hexString);
var content=input.value;
alert(content);
content.replace("1","百度");
content.replace("2","知道");
content.replace("3","你好");
input.value=content;
}
</script>
<body>
<input type="text" onblur="test(this)"/>
</body>
<html>
时间: 2024-10-21 11:59:36