字符串需要加上””引号,定义了的变量名不用””引号
弹出提示框
|
|
弹出输入框
|
|
if条件语句
|
|
if…else语句
|
|
###余数运算符%12console.log(9 % 5)// 4
###substring1234567"hello".substring(0, 2);// he0 1 2 3 4 | | | | | h e l l o字符串的下标从0开始,substring()方法返回的子串包括start处的字符但是不包括stop处的字符
Creating a life that reflects your values and satisfies your soul is a rare achievement. To invent your own life's meaning is not easy, but it is still allowed, and I think you'll be happier for the trouble.
|
|
|
|
|
|
|
|
###余数运算符%12console.log(9 % 5)// 4
###substring1234567"hello".substring(0, 2);// he0 1 2 3 4 | | | | | h e l l o字符串的下标从0开始,substring()方法返回的子串包括start处的字符但是不包括stop处的字符