请问这样写可以么?
来源:3-18 编程练习
胖嘘嘘
2018-03-21 21:24:01
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>3.8练习</title>
</head>
<body>
<script>
var a=parseInt("50px"),b=parseInt("px50"),c=parseInt("50px50"),d=parseInt("50.51")
console.log(typeof a);
console.log(typeof(b));
console.log(typeof c);
console.log(typeof(d));
</script>
</body>
</html>1回答
好帮手慕星星
2018-03-22
是可以的哦,建议在定义完的最后一个添加分号哦,

祝学习愉快~~
相似问题