js题集22
2021-06-08 22:05
阅读:518
标签:题集 ret original gre origin tin bsp 实现 wrap 1.实现warp function speak(name){ return "Hello " + name; } speak = speak.wrap(function(original, yourName, myName){ greeting = original(yourName); return greeting + ", my name is " + myName; }) var greeting = speak("Mary", "Kate"); js题集22 标签:题集 ret original gre origin tin bsp 实现 wrap 原文地址:http://www.cnblogs.com/tong24/p/7305825.html
上一篇:js题集20
评论
亲,登录后才可以留言!