粗暴的项目总结 (because of part)

12 篇文章 0 订阅
8 篇文章 0 订阅

vue 移动端地图开发坑

Total canvas memory use exceeds the maximum limit (Safari 12)

最近在做 H5 地图开发, 用的是高德地图。vue单页应用,几个页面中有三张地图,然而地图之间的来回切换,在 ios上会导致 canvas 内存溢出,然后页面就崩了。。 解决办法就是利用 vue 的 keep-alive 缓存组件, 阻止页面的地图 canvas 重新加载,可以很大幅度减少内存溢出, 除非这个人真的一直在加载地图的很多地图canvas。

注意 使用 keep-alive 之后组件不会再重新created,mounted, 所以在切换页面的时候需要刷新的数据,请自行更新数据。

高德地图的web 定位

仔细阅读官方文档,你会知道 web 平台的定位是根据 ip 定位的。在 ios 手机端可以弹出浏览器允许定位弹窗,在安卓端却不行。那么你们需要集成安卓 SDK,请让安卓开发的人来, 请查看官方网站。因为我们公司有了,所以具体我也不知道。。?

iframe 嵌套页面左滑返回卡死

ios 不是可以手机屏幕左滑返回上一页嘛,当你的页面已经是嵌在 frame 里面,并且还有页面跳转,你左滑回去之后就,页面就卡死了,仿佛只是一张图片。无解。## 标题

有没有干货 ?

做这个项目遇到过很多大大小小的bug,总结起来却发现好像没什么总结的 = = 哦,H5 项目考虑到页面加载大小的性能问题。

  • 所以项目大小也是要考虑的。没有的字体就使用默认字体,之前加入了字体文件,这个项目直接30M 了 = =。
  • 然后就是组件按需加载,不要一股脑加入所有组件。
  • 另外,关于css,不要使用 scoped, 这也会影响 css 的解析,还是使用模块包裹吧。
  • 关于打包。最新的 webpack 4 打包配置。发现测试、预发、线上打包出来的文件大小不是一致的。 线上打包的文件,貌似会根据页面所需要的 js 文件进行按需加载,加快渲染速度。 em…具体后面再去查看了。
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
This new 7th edition of Pro C# 6.0 and the .NET 4.6 Platform has been completely revised and rewritten to reflect the latest changes to the C# language specification and new advances in the .NET Framework. You'll find new chapters covering all the important new features that make .NET 4.6 the most comprehensive release yet, including:, A Refined ADO.NET Entity Framework Programming ModelNumerous IDE and MVVM Enhancements for WPF Desktop DevelopmentNumerous updates to the ASP.NET Web APIs, This comes on top of award winning coverage of core C# features, both old and new, that have made the previous editions of this book so popular. Readers will gain a solid foundation of object-oriented development techniques, attributes and reflection, generics and collections as well as numerous advanced topics not found in other texts (such as CIL opcodes and emitting dynamic assemblies)., The mission of this book is to provide you with a comprehensive foundation in the C# programming language and the core aspects of the .NET platform plus overviews of technologies built on top of C# and .NET (ADO.NET and Entity Framework, Windows Communication Foundation (WCF), Windows Presentation Foundation (WPF), ASP.NET (WebForms, MVC, WebAPI).). Once you digest the information presented in these chapters, you’ll be in a perfect position to apply this knowledge to your specific programming assignments, and you’ll be well equipped to explore the .NET universe on your own terms., What You Will Learn:, Be the first to understand the .NET 4.6 platform and C# 6.Discover the ins and outs of the leading .NET technology.Learn from an award-winning author who has been teaching the .NET world since version 1.0.Find complete coverage of XAML, .NET 4.6 and Visual Studio 2015 together with discussion of the new Windows Runtime.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值