摘要: 1 /* eslint-disable-next-line */ 2 Number.prototype.toFixed = function(d) { 3 let s = `${this}` 4 /* eslint-disable-next-line */ 5 if (!d) d = 0 6 if 阅读全文
posted @ 2020-12-11 16:31 a权 阅读(156) 评论(0) 推荐(0) 编辑
摘要: react高级指引 1 无障碍 网络无障碍辅助功能(Accessibility,也被称为 a11y,因为以 A 开头,以 Y 结尾,中间一共 11 个字母)是一种可以帮助所有人获得服务的设计和创造。无障碍辅助功能是使得辅助技术正确解读网页的必要条件。 React 对于创建可访问网站有着全面的支持,而 阅读全文
posted @ 2020-12-11 13:46 a权 阅读(255) 评论(0) 推荐(0) 编辑
摘要: react官方文档 1 元素渲染 const element = <h1>Hello, world!</h1>; ReactDOM.render( element, document.getElementById('example') ); 2 jsx 以下两种示例代码完全等效: const ele 阅读全文
posted @ 2020-12-11 13:40 a权 阅读(168) 评论(0) 推荐(0) 编辑
Top