common

vue移动端开发笔记

爱⌒轻易说出口 提交于 2019-11-26 20:19:42
移动端开发 多页面应用特点 页面跳转,返回html 优点: 首屏时间快,搜索引擎效果好 缺点: 页面切换慢 单页面应用特点(vue) 页面跳转,js渲染 优点: 页面切换快 缺点: 首屏时间稍慢,搜索引擎(SEO)优化效果差 服务器端渲染可以完美的解决单页面所遇到的问题 Viewport 基础 width 控制 viewport 的大小, device-width为设备的宽度 initial-scale 初始的缩放比例 minimum-scale 允许用户缩放到的最小比例 maximum-scale 允许用户缩放到的最大比例 user-scalable 用户是否可以手动缩放 < meta name = "viewport" content = " width = device - width , initial - scale = 1.0 , user - scalable = 1.0 , minimum - scale = 1.0 , maximum - scale = 1.0 " > 移动端300ms延迟 移动端浏览器click事件为什么会有300ms的延迟呢?因为在手机上有个双击方案: 在手机上快速点击两下,实现页面放大;再次双击,恢复到原始比例 那它是如何实现的呢?浏览器在捕捉到第一次点击事件后,会等待一段时间,如果在这段时间内,用户没有再次进行点击操作的话,就执行单击事件

Two methods to iterate every points in pointcloud of PCL(两种遍历点云的方式)

懵懂的女人 提交于 2019-11-26 19:15:56
The most common way to do this is by subscript in the [] operand [1] pcl::PointCloud<pcl::PointXYZ>::Ptr pointCloud; for(int nIndex = 0; nIndex < pointCloud->points.size (); nIndex++) { pointCloud->points[nIndex].x; pointCloud->points[nIndex].y; pointCloud->points[nIndex].z; } The more efficient way is to use an iterator [2] [3] for (std::vector<pcl::PointXYZ, Eigen::aligned_allocator<pcl::PointXYZ> >::iterator it = pointCloud.bigin(); it != cropedCloud.end(); it++) { it->getVector3fMap(); // if double wanted, just say it->getVector3fMap().cast<double> } Note: The snippet should be modified to

C#關鍵詞

点点圈 提交于 2019-11-26 16:32:14
MFC:Microsoft Foundateion Class 微軟基礎類庫 COM:Component Object Model 組件對象模型 XML HTTP SOAP JSON WSDL CLR:Common Language Runtime 公共語言運行庫 FCL:框架類庫 BCL:Base Class Library 基類庫 GC:Garbage Collector 垃圾收集器 (自動釋放內存,檢查內存泄漏) GAC: 全局程序集缓存 CIL:Common Intermediate Language 公共中间语言 程序集:公共中間語言+類型信息+安全信息 IL:Intermediate Language 中间语言 MSIL:Microsoft Intermediate Language JIT:實時編譯器 CLI:Common Language Infrastructure 公共語言基礎結構 CTS:Commom Type System 公共類型系統 CLS:Common Language Specification 公共語言規範 来源: https://www.cnblogs.com/chendd/p/11326535.html

LCA Nearest Common Ancestors (很典型的例题)

蓝咒 提交于 2019-11-26 14:05:52
A rooted tree is a well-known data structure in computer science and engineering. An example is shown below: In the figure, each node is labeled with an integer from {1, 2,...,16}. Node 8 is the root of the tree. Node x is an ancestor of node y if node x is in the path between the root and node y. For example, node 4 is an ancestor of node 16. Node 10 is also an ancestor of node 16. As a matter of fact, nodes 8, 4, 10, and 16 are the ancestors of node 16. Remember that a node is an ancestor of itself. Nodes 8, 4, 6, and 7 are the ancestors of node 7. A node x is called a common ancestor of two

Java向:CacheBuilder

≯℡__Kan透↙ 提交于 2019-11-26 10:13:30
JavaDoc com.google.common.cache Class CacheBuilder<K,V> java.lang.Object com.google.common.cache.CacheBuilder<K,V> Type Parameters: K - the base key type for all caches created by this builder V - the base value type for all caches created by this builder @GwtCompatible(emulated=true) public final class CacheBuilder<K,V> extends Object 其中,@GwtCompatible代表可以通过Google Web Toolkit使用。具体可以参考以下链接( https://guava.dev/releases/18.0/api/docs/com/google/common/annotations/GwtCompatible.html )。 在具体了解CacheBuilder之前,我们先了解其他两个class,即LoadingCache和Cache。 LoadingCache JavaDoc @Beta @GwtCompatible public

运行一段时间报Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit

拈花ヽ惹草 提交于 2019-11-26 07:33:44
部署微服务,20个服务部署到一台腾讯云服务器上. 多个项目运行一段时间均报错: 2019-11-23 16:04:19.418 INFO 19851 --- [nio-8780-exec-4] c.c.common.aspect.ControllerLogAspect : http_method : POST 2019-11-23 16:04:19.418 INFO 19851 --- [nio-8780-exec-4] c.c.common.aspect.ControllerLogAspect : ip : 10.10.64.34 2019-11-23 16:04:19.418 INFO 19851 --- [nio-8780-exec-4] c.c.common.aspect.ControllerLogAspect : class_method : com.coship.event.controller.WorkEventController.getEventLogLatest 2019-11-23 16:04:19.418 INFO 19851 --- [nio-8780-exec-4] c.c.common.aspect.ControllerLogAspect : args : [EventParam(id=null, eventCode=null, eventName