编写函数,判断一个字符串的内容是不是纯数字 var str = prompt("请输入一个字符串"); // 获取用户输入的数据 function isNumber(str){ if( str == 0){ return