[前端] 每日时报 - 2019.06.18 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
wubaiqing
V2EX    分享发现

[前端] 每日时报 - 2019.06.18

  •  
  •   wubaiqing 2019-06-18 16:35:38 +08:00 1399 次点击
    这是一个创建于 2387 天前的主题,其中的信息可能已经有所发展或是发生改变。

    201.06.18

    [类库] html-to-jsx 是可以把 HTML 转换成 JSX 的工具库;很好理解,我们直接看它的单元测试:https://github.com/littlehaker/html-to-jsx/blob/master/test/index.js

    [类库] react-hook-form 看库的名字很好理解,是对 React Form 表单包装了一层 Hook 函数,可以用于校验等;但这次主要目的不是分享它,而是分享它另外的一个功能,叫做表单生成器;后续我们团队为了快速的做业务性开发,也会弄表单生成器,我会参考它去做:https://react-hook-form.com/builder/

    [工具] spearmint 是一个客户端的测试工具,提供了一套 GUI 界面,可以方便的渲染组件视图、测试逾期结果、添加 Mock 和测试事件:https://github.com/spearmintjs/spearmint

    [工具] Appium 是针对 APP 的测试框架,多数的测试框架也意味着可以做数据抓取,比如我想抓链家的房源、小红书的搭配信息都可以用它来做:https://github.com/appium/appium

    配图 - react-hook-form

    配图 - spearmint

    示例 - html-to-jsx

    describe('html attributes', function() { it('class should be repleaced with className', function() { assert.equal(convert('<div class="foobar"></div>'), '<div className="foobar"></div>'); }); it('for should be repleaced with htmlFor', function() { assert.equal(convert('<label for="foobar"></label>'), '<label htmlFor="foobar"></label>'); }); it('attributes should be camelCased', function() { assert.equal(convert('<input type="text" maxlength="10" minlength="0"/>'), '<input type="text" maxLength="10" minLength="0"/>'); }); }); 

    今日图 - PM 讲需求

    GitHub: https://github.com/wubaiqing/zaobao
    查看更多: https://wubaiqing.github.io/zaobao/2019/06/18.html

    目前尚无回复
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     4873 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 25ms UTC 09:40 PVG 17:40 LAX 01:40 JFK 04:40
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86