五分钟内反应回复,平均十分钟解决任何IT技术问题,按难度跟工作量收费!

js数字相加问题

admin |浏览342次
检举|收藏|2017/06/12 14:12

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>js数字相加问题</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
</head>
<body>


<script>

var ads = "12";
var abs = 33;
var las_number = Number(ads) + Number(abs);
document.write(las_number);


</script>

</body>
</html>

全部回答(0)
 加载中...