摘要: Suppose you have a long flowerbed in which some of the plots are planted and some are not. However, flowers cannot be planted in adjacent plots - they would compete for water and both would die.Given ... 阅读全文
posted @ 2017-07-22 17:49 xiejunzhao 阅读(255) 评论(0) 推荐(0)
摘要: 工作中时常需要把EXML代码中声明的组件编写到ts文件中,耗时耗力。因此编写一个小工具,自动生成组件声明代码。 工具代码如下:var fs = require("fs")var readline = require('readline');var rl = readline.createInterface(process.stdin, process.stdout); var input = ""... 阅读全文
posted @ 2017-07-22 00:35 xiejunzhao 阅读(766) 评论(0) 推荐(0)