花了3天时间学了一下小程序开发

WX20200407-205737@2x.png

小程序诞生都有一段时间了,就刚出来的时候了解了一下,下载了开发工具就一直在电脑里吃灰,没能静下心来学习。趁着清明节的3天假期宅在家里的时间,决定学一下小程序开发。

正因为已经有一段时间了,所以有一些框架可以使用,不用从造轮子开始。研究了一下京东的taro框架还有uni-app框架,最终选择了taro框架,它是基于React.js的,以前有学过React Native,都是React的那一套响应式编程思想,还有flexbox的样式布局都是差不多的,此外,还提供了一套taro-ui的UI组件,基本上拿来改一下样式就可以了,所以上手没什么困难。

我是做iOS开发的,感觉小程序开发和做App差不多,无非就是NavigationBar导航栏和Tabbar标签栏的自定义、页面跳转,然后到了单页面,就是页面布局、网络请求和页面间通讯。搞懂这些就差不多了。

学习过程中最坑的就是taro的官方文档很不详细,就去看了别人写的一些教程,其中关于如何实现Tabbar的,按照他的做法写了半天才发现是错的,而且完全不需要那么麻烦,然后各种翻查资料,才发现原来框架本身就可以配置,只要配置好参数就可以了。可是官方文档完全没有提到,浪费了一天时间在折腾这个。

花了3天时间总算上手了,照着公司某个App的UI设计写了一个Demo出来,虽然放假没有怎么玩耍,但还是很有成就感,做自己喜欢的事情就是那么乐此不疲。



0
0
0.000
1 comments
avatar

He said, 'Stop doing wrong things and turn back to God! The kingdom of heaven is almost here.'(Matthew 3:2)

Question from the Bible, Do you need to go to Church to practice a religious ritual in your life? [Part 1 of 2]

Watch the Video below to know the Answer...
(Sorry for sending this comment. We are not looking for our self profit, our intentions is to preach the words of God in any means possible.)


Comment what you understand of our Youtube Video to receive our full votes. We have 30,000 #HivePower, It's our little way to Thank you, our beloved friend.
Check our Discord Chat
Join our Official Community: https://peakd.com/c/hive-182074/created

0
0
0.000