上一页 1 2 3 4 5 6 ··· 8 下一页

正则踩坑一

摘要: $1,$2.....:显示括号里的第一个;显示括号里的第二个.... let content='<img src="http://qiniu.ve-link.com/files/3/3/45/b20e446593872e59a99aff02edca5c9a450e4533.jpg" style="h 阅读全文
posted @ 2019-10-31 17:12 旺仔小裤头 阅读(115) 评论(0) 推荐(0) 编辑

小程序 富文本编辑器解析标签组件

摘要: 方法一:rich-text 文档:https://developers.weixin.qq.com/miniprogram/dev/component/rich-text.html 方法二(当需要触发点击事件时可以使用): 使用wxParse:https://github.com/icindy/wx 阅读全文
posted @ 2019-10-18 17:11 旺仔小裤头 阅读(596) 评论(0) 推荐(0) 编辑

原生小程序 常用api集合

摘要: 1.手机选择照片 var that = this; wx.chooseImage({ count: 9, // 默认9 sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有 sourceType: ['album', 'camera 阅读全文
posted @ 2019-10-15 14:53 旺仔小裤头 阅读(379) 评论(0) 推荐(0) 编辑

原生小程序 拖拽组件movable-view

摘要: 例子: 1.wxml: <movable-area class='movable-box'> <movable-view class='movable-btn' x='{{x}}' y='{{y}}' direction='all' bindtouchstart='homeMoveStart' bi 阅读全文
posted @ 2019-10-15 14:33 旺仔小裤头 阅读(922) 评论(0) 推荐(0) 编辑

原生小程序 自定义封装组件

摘要: 1.在components自定义文件夹,文件夹里分别包含wxml,wxss,js,json文件 (componetns文件是自己手写的) 2.wxml与wxss文件按照平常的来就好 3.js文件 Component({ properties:{ 页面上需要动态传递的参数:数据类型 例如:name:S 阅读全文
posted @ 2019-10-14 10:00 旺仔小裤头 阅读(706) 评论(0) 推荐(0) 编辑

H5 es6 foreach使用

摘要: 数组.foreach(数组中的每一项,下标)=>{} 例如: let arr=[ {id:1,name:'张三'}, {id:2,name:'李四'}, {id:3,name:'王五'} ] arr.foreach(item,index)=>{ console.log(item.id) //1,2, 阅读全文
posted @ 2019-10-14 09:18 旺仔小裤头 阅读(892) 评论(0) 推荐(0) 编辑

原生小程序底部弹出层动画过渡

摘要: 1.wxml <view class="my-dialog" catchtouchmove="true">//catchtouchmove阻止冒泡,防止遮罩层底部滑动 <view class="my-mask" bindtap="confirmDialog" hidden="{{!showDialo 阅读全文
posted @ 2019-10-12 10:27 旺仔小裤头 阅读(809) 评论(0) 推荐(0) 编辑

vue 动画滑动

摘要: 我是在vue中引入jquery使用的 第一步:安装jquery插件 npm install jquery --save 第二步:配置文件 webpack.base.conf.js: const webpack = require('webpack')plugins:[ new webpack.Pro 阅读全文
posted @ 2019-09-19 18:46 旺仔小裤头 阅读(320) 评论(0) 推荐(0) 编辑

H5 textarea高度自适应

摘要: <!DOCTYPE html><html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv= 阅读全文
posted @ 2019-09-19 14:53 旺仔小裤头 阅读(788) 评论(0) 推荐(0) 编辑

vue swiper4使用

摘要: swiper中文官网:https://www.swiper.com.cn/api/index.html 第一步:下载swiper 插件 npm install swiper --save-dev 第二步:在main.js中引入 import Swiper from 'swiper' import ' 阅读全文
posted @ 2019-09-19 14:44 旺仔小裤头 阅读(1509) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 8 下一页