摘要: 在小程序中要实现锚点定位,需要使用到组件 scroll-view 点击查看 scroll-view 组件官网文档 需要用到的是 scroll-into-view 这条属性,这条属性的官网解释是这样的: scroll-into-view String值应为某子元素id(id不能以数字开头)。设置哪个方 阅读全文
posted @ 2019-08-13 09:46 yuan9580 阅读(4100) 评论(0) 推荐(0) 编辑
摘要: 1.wxml布局样式 2.wscc样式 3.js 阅读全文
posted @ 2019-08-13 09:44 yuan9580 阅读(325) 评论(0) 推荐(0) 编辑
摘要: H5开发中使用ajax调用数据接口, 如果接口文件不在同域名下会提示跨域错误(No 'Access-Control-Allow-Origin' header is present on the requested resource.)。 1.兼容IE浏览器的方法,在Ajax请求的时候使用jsonp: 阅读全文
posted @ 2019-08-13 09:38 yuan9580 阅读(147) 评论(0) 推荐(0) 编辑
摘要: html css 阅读全文
posted @ 2019-08-13 09:36 yuan9580 阅读(246) 评论(0) 推荐(0) 编辑
摘要: attr()的用法 attr()获得属性值 通过attr()获得属性时,可以这样$(selector).attr(attrName)。注意,其返回值始终是string型! eg : 通过attr()得到的属性age的值是”23”,属性iswork的值是”true”。 另外需要注意的是,attr()对 阅读全文
posted @ 2019-08-13 09:34 yuan9580 阅读(478) 评论(0) 推荐(0) 编辑