📜  添加整数 jquery - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:05.694000             🧑  作者: Mango

代码示例1
//Adding integers in jQuery
var a = parseInt("1"); //use the parseInt() to convert strings to integers
var b = 3;
var c = 5;

var d = a + b + c;
document.write(d); //returns 9