前端
阳光下的木棉
j2ee android
展开
-
ios需要点击2次才能触发h5页面返回
原因分析: 当前代码采用form target指向iframe,实现无页面刷新。ios情况下,可能会多Push一个当前的页面的路径到history。解决办法:删除target指向iframe.form增加onSubmit事件。onFormSubmit=(event)=>{//避免跳转到action对应地址event.preventDefault();returnfalse;}...原创 2020-07-10 09:19:59 · 1649 阅读 · 0 评论 -
命令行通过npm安装typescript
npm config set registry https://registry.npm.taobao.org npm config set disturl https://npm.taobao.org/dist npm -g install typescript 指定typescript版本,如下: npm -g install [email protected]原创 2020-05-20 10:16:10 · 632 阅读 · 0 评论