摘要: 转自: http://www.cnblogs.com/dabingqi/p/8502932.html 阅读全文
posted @ 2019-01-14 17:41 liuxinheng87 阅读(100) 评论(0) 推荐(0) 编辑
摘要: <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="x-dns-prefetch-control" content="on" /> <meta charset="utf-8" 阅读全文
posted @ 2019-01-10 15:47 liuxinheng87 阅读(734) 评论(0) 推荐(0) 编辑
摘要: 做App内嵌H5项目时,经常会遇到js与App的交互,最普遍的就是方法的互相调用,那么如何实现方法的互相调用呢? 写在前面: 如果只是小项目且后期扩大的可能性不大的时候,可以忽略,可如果是长期项目的话,那么就需要考虑以下一些问题了。 1. 方法命名规范。 如果考虑到以后会有大量的方法,那么规范化的命 阅读全文
posted @ 2019-01-07 18:13 liuxinheng87 阅读(2586) 评论(0) 推荐(0) 编辑
摘要: 在Vue组件中,我们可以使用<style scoped>标签来添加针对该组件的CSS样式。 <template> <div class="foo"> <div v-html="myHtml"></div> </div></template><style scoped> .foo { height: 阅读全文
posted @ 2019-01-05 15:03 liuxinheng87 阅读(1969) 评论(0) 推荐(1) 编辑
摘要: ontouchend 用e.changedTouches[0]来获取 阅读全文
posted @ 2018-12-12 13:40 liuxinheng87 阅读(550) 评论(0) 推荐(0) 编辑