老师麻烦检查一下
来源:3-18 编程练习
WJ沪00001
2019-04-07 23:07:11
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>数据类型转换</title> </head> <body> <script> // 补充代码 var a="50px",b="px50",c="50px50",d="50.51"; document.write(parseInt(a)+"<br>"); document.write(parseInt(b)+"<br>"); document.write(parseInt(c)+"<br>"); document.write(parseInt(d)+"<br>"); document.write(typeof(parseInt(a))+"<br>"); document.write(typeof(parseInt(b))+"<br>"); document.write(typeof(parseInt(c))+"<br>"); document.write(typeof(parseInt(d))+"<br>"); </script> </body> </html>
1回答
樱桃小胖子
2019-04-08
效果实现的是可以的,继续加油哦!
相似问题