Comments (3)
大神参考你的作品我也写了一个,浏览器可以直接运行的版本。追加了enum类型,default参数和formatData功能。有机会交流交流啊 https://github.com/LOVEtheWayuLie/js-Struct
from blog.
@LOVEtheWayuLie
哈,你写得很不错,不过我给点建议啊
- 加上测试用例
- 使用打包工具打包umd模块,而不是直接挂载在windows下
from blog.
@axetroy 恩恩,谢谢。
一直没有在浏览器外的地方写过js,所以就写在了window下,我会努力去学习写一些在哪都能跑的js的。
- 那个我测试了一下你的json验证, 不是很完善。 typeof JSON.parse('null') === ‘object’ 也会通过的
from blog.
Related Issues (20)
- 一个装饰器风格,依赖注入,OOP的Web框架
- 面试官: 你了解过Babel吗?写过Babel插件吗? 答: 没有。卒 HOT 3
- 从零开始写一个Javascript解析器 HOT 4
- 前端常见的布局和功能 (持续更新)
- 愿你我都不会成为这样的人 HOT 2
- 一篇文章告诉你JWT的实现原理 HOT 1
- 使用 Docker 打造超溜的前端环境 HOT 14
- 你这6. 直接用#作来路径
- 集合第三方平台提高应用的健壮性 HOT 3
- 开发基于Docker封装的一个快速部署工具
- 我是如何把vscode扩展的启动速度提升80倍的 HOT 1
- 老是记不住 eslint-disable-next-line 怎么办? 于是我写了个自动补全的扩展
- 又一个vscode扩展,生成CHANGELOG HOT 1
- 不要陷入技术魔咒 HOT 15
- 用VSCODE写代码之余,不妨看看有什么好电影 HOT 14
- hello world
- Dependency Dashboard
- 如何制作一个反向代理服务器以及处理细节
- 2022,开始 Rust 之旅
- 请问怎么用?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blog.