摘要: 运行结果: 阅读全文
posted @ 2017-05-29 23:44 newAdmin 阅读(616) 评论(0) 推荐(0) 编辑
摘要: 执行结果: 阅读全文
posted @ 2017-05-29 14:33 newAdmin 阅读(898) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-05-28 11:20 newAdmin 阅读(1552) 评论(0) 推荐(0) 编辑
摘要: 输出都在控制台中: 阅读全文
posted @ 2017-05-28 00:54 newAdmin 阅读(575) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-05-27 22:58 newAdmin 阅读(2025) 评论(0) 推荐(0) 编辑
摘要: 显示在浏览器中的控制台中。 阅读全文
posted @ 2017-05-27 20:20 newAdmin 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 利用JavaScript中的map函数和reduce函数实现函数式编程。 注意: 输出都在浏览器的控制台中。 代码如下: 说明: data是一个数组对象,data.reduce(function)方法带一个函数做参数,可把data中的所有元素都累加,返回累加和。 注意: 做参数的函数需要带两个参数 阅读全文
posted @ 2017-05-27 10:29 newAdmin 阅读(5249) 评论(2) 推荐(2) 编辑
摘要: 注意: 以下的输出都在浏览器的控制台中 阅读全文
posted @ 2017-05-26 21:10 newAdmin 阅读(687) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>JS弹框</title> <style type="text/css"> .output{font-weight: bold;} #payment{text-decoration: 阅读全文
posted @ 2017-05-25 18:43 newAdmin 阅读(2745) 评论(0) 推荐(0) 编辑