最新回答 / Simon站起来
switch ("hello world") { case "hello" + "world":哥们空格也是个字符,"hello" + "world"你这么写出来结果是"helloworld" 和"hello world"一样的?
2016-09-27
最新回答 / 9玖月
把document.write(myarr1.slice(1,3));改成document.write(myarr1.slice(1));不就可以啦!slice(start, end)的第二个参数end不写,则表示获取从start开始到数组结束所有元素!
2016-09-27
最新回答 / 端前
Z可以写成Z: 也可以不那样写;你把获取txt1,2以及select部分的 parseInt改成parseFloat;任务要求对 document.getElementById('fruit')取整;所以只用这样document.getElementById('fruit').value=parseInt(z);即可
2016-09-26