上一页 1 2 3 4 5 6 7 8 9 ··· 14 下一页
摘要: https://facebook.github.io/react-native/docs/integration-with-existing-apps.html RN可以很好地支持往一个原生的app上添加RN的组件。通过简单的步骤,我们可以添加RN基础的特征、组件等。后面以android为例。 关键 阅读全文
posted @ 2018-01-18 15:10 HelloHello233 阅读(4515) 评论(0) 推荐(0) 编辑
摘要: https://facebook.github.io/react-native/docs/direct-manipulation.html setNativeProps可以直接修改底层native组件的属性,不与React相关(state不会跟着同步),其他原生方法还有measure、measure 阅读全文
posted @ 2018-01-18 14:35 HelloHello233 阅读(1402) 评论(0) 推荐(0) 编辑
摘要: https://facebook.github.io/react-native/docs/debugging.html 热加载 RN的目标是极致的开发体验,修改文件后能在1秒内看到变化,通过以下三个特征来实现: 有了以上功能,剩余的瓶颈就是刷新后会丢失app当前的状态,手动还原了当前要调试的状态需要 阅读全文
posted @ 2018-01-17 22:03 HelloHello233 阅读(1804) 评论(0) 推荐(0) 编辑
摘要: 使用夜神 使用夜神作为模拟器,这个模拟器启动就会监听62001端口。 开发工具与模拟器的通信都是通过adb。夜神模拟器的安装目录/bin下有一个adb.exe,android sdk tools下也有一个adb.exe。必须保证两者的adb版本一致(否则两个adb进程version不一致会互相kil 阅读全文
posted @ 2018-01-16 19:02 HelloHello233 阅读(374) 评论(0) 推荐(0) 编辑
摘要: https://facebook.github.io/react-native/docs/using-a-listview.html react native类似于react,不过它使用的是原生组件,而不是web组件。也就是说不能div或span等。react native使用jsx、state、p 阅读全文
posted @ 2018-01-15 22:48 HelloHello233 阅读(161) 评论(0) 推荐(0) 编辑
摘要: https://reactjs.org/docs/react-dom-server.html https://redux.js.org/docs/recipes/ServerRendering.html redux 在客户端,也会创建一个全新的store,拿以上发送回来的state来进行store的 阅读全文
posted @ 2018-01-11 17:04 HelloHello233 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 参考: https://webpack.js.org/concepts/hot-module-replacement/ https://webpack.js.org/guides/hot-module-replacement/ hmr技术支持程序运行时的模块(amd、commonJS等)的修改、添加 阅读全文
posted @ 2018-01-10 19:54 HelloHello233 阅读(291) 评论(0) 推荐(0) 编辑
摘要: https://ssr.vuejs.org/zh/universal.html 基本用法 通过vue-server-renderer插件的createRenderer方法创建一个renderer,再调用这个renderer的renderToString(app),将一个带有template和data 阅读全文
posted @ 2018-01-08 16:32 HelloHello233 阅读(366) 评论(0) 推荐(0) 编辑
摘要: https://mp.weixin.qq.com/s/v1c69bJ5PxGcqt-ZU4FVXw https://juejin.im/entry/590ca74b2f301e006c10465f https://www.zhihu.com/question/32524504?sort=create 阅读全文
posted @ 2018-01-04 10:31 HelloHello233 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 一个最简单的代理例子:index.html中有如下代码 里面访问的是相对地址,但我本地并没有服务器有提供这些api。把以上的路径补全为云服务器上的绝对路径,但是又报CORS错误。 解决办法是配置一个代理。这里通过webpack-dev-server实现,简单的配置文件如下: 接着运行(以当前目录作为 阅读全文
posted @ 2017-12-31 15:27 HelloHello233 阅读(6048) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 14 下一页