题解 | #计数器#

计数器

https://www.nowcoder.com/practice/59154c37d06c41b5b0e19b3b26272229

{"html":"<!DOCTYPE html>\r\n<html>\r\n    <head>\r\n        <meta charset=utf-8>\r\n    </head>\r\n    <body>\r\n    \t\r\n        <script type=\"text/javascript\">\r\n            const closure = () => {\r\n                // 补全代码\r\n                let counter = 0;\r\n\r\n                return function () {\r\n                    return ++counter;\r\n                }\r\n            }\r\n        </script>\r\n    </body>\r\n</html>","css":"/* html, body {\\n\\twidth: 100%;\\n\\theight: 100%;\\n\\tmargin: 0;\\n\\tpadding: 0;\\n} */","js":"// 请在这里输入代码"}

全部评论

相关推荐

影04714:把图书管理系统那个项目经验内容适当的减少掉,然后改成据为己有不要说团队项目,因为图书管理系统这类常见的谁来了都能独立写出来,提问能圆过来即可
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务