上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页
摘要: 方法一:使用正则表达式 语法如下: String(Number).replace(/(\d)(?=(\d{3})+$)/g, "$1,"); 举例: String(123456789).replace(/(\d)(?=(\d{3})+$)/g, "$1,"); 结果是:123,456,789 正则表达式方法使用示意截图 方法二:使用toLocaleString()方法 语法如下: Nu... 阅读全文
posted @ 2018-06-14 16:53 风吹麦浪打 阅读(389) 评论(0) 推荐(0) 编辑
摘要: CSS代码: .box { max-width: 414px; height: 480px; border: solid #000; margin: auto; overflow: auto; } .shape { float: left; width: 30px; height: 340px; shape-outside: pol... 阅读全文
posted @ 2018-06-14 16:50 风吹麦浪打 阅读(195) 评论(0) 推荐(0) 编辑
摘要: .target { filter: url("#goo"); } .ball { width: 150px; height: 150px; border-radius: 50%; background-color: #beceeb; position: absolute; } HTML代码: ... 阅读全文
posted @ 2018-06-14 16:25 风吹麦浪打 阅读(215) 评论(0) 推荐(0) 编辑
摘要: CSS代码: input { color: #333; caret-color: red; } @supports (-webkit-mask: none) and (not (caret-color: red)) { input { color: red; } input::first-line { color: #333; } } HTML代码: 阅读全文
posted @ 2018-06-14 16:22 风吹麦浪打 阅读(135) 评论(0) 推荐(0) 编辑
摘要: Document 1111 阅读全文
posted @ 2018-06-14 09:58 风吹麦浪打 阅读(393) 评论(0) 推荐(0) 编辑
摘要: Document 阅读全文
posted @ 2018-06-14 09:57 风吹麦浪打 阅读(199) 评论(0) 推荐(0) 编辑
摘要: React给添加元素增加样式 第一种方法: 第二种方法: 第三种方法: 第四种方法: style.js的代码: 阅读全文
posted @ 2018-06-08 15:21 风吹麦浪打 阅读(3129) 评论(0) 推荐(0) 编辑
摘要: 关键是reader.readAsDataURL(file)这句,可以把图片转成base64格式,让img标签读取 阅读全文
posted @ 2018-05-31 11:41 风吹麦浪打 阅读(254) 评论(0) 推荐(0) 编辑
摘要: irst:定义一个parent component ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 <template> <div> <childOne></childOne> </div> </template> <script> import childO 阅读全文
posted @ 2018-05-25 16:15 风吹麦浪打 阅读(203) 评论(0) 推荐(0) 编辑
摘要: Document Name Math Physics Chemistry Melanie 100 ... 阅读全文
posted @ 2018-05-25 15:21 风吹麦浪打 阅读(287) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页