摘要: // 获取时间戳 function add0(m){return m<10?'0'+m:m } function format(shijianchuo) { //shijianchuo是整数,否则要parseInt转换 var time = new Date(shijianchuo); var y 阅读全文
posted @ 2020-11-10 09:39 茗涵 阅读(12058) 评论(0) 推荐(0) 编辑
摘要: //html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title></ 阅读全文
posted @ 2020-10-23 14:54 茗涵 阅读(566) 评论(0) 推荐(1) 编辑
摘要: 首先 npm install mockjs npm install vue-axios --save npm install qs.js --save //main.js import Vue from 'vue' import axios from 'axios' Vue.prototype.$h 阅读全文
posted @ 2020-10-23 14:45 茗涵 阅读(236) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>jQuery点击展开收缩树形菜单</title> <style type="text/css"> *{margin: 0;padding: 0} body{fo 阅读全文
posted @ 2020-09-18 16:23 茗涵 阅读(364) 评论(0) 推荐(0) 编辑
摘要: //app/main/res/layout <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_he 阅读全文
posted @ 2020-09-02 16:12 茗涵 阅读(2560) 评论(0) 推荐(0) 编辑
摘要: //app.json "permission": { "scope.userLocation": { "desc": "你的位置信息将用于小程序位置接口的效果展示" } } <!--pages/map/map.wxml--> <view class='list-guide'> <!-- 这里的坐标本 阅读全文
posted @ 2020-08-25 11:49 茗涵 阅读(253) 评论(0) 推荐(0) 编辑
摘要: var replace_data = that.data.goods_jihe var result = []; //去重后的数组对象集合 var hash = {}; for (var i = 0; i < replace_data.length; i++) { var elem = replac 阅读全文
posted @ 2020-07-24 15:07 茗涵 阅读(813) 评论(0) 推荐(0) 编辑
摘要: //wxml <view class="wrap"> <live-player id="live-player-id" class='{{winstyle}}' src="rtmp://" mode="live/RTC" autoplay bindstatechange="playerstatech 阅读全文
posted @ 2020-07-17 16:36 茗涵 阅读(752) 评论(0) 推荐(0) 编辑
摘要: //wxml <view class="lists"> <van-radio-group value="{{ radio }}" bind:change="onChange"> <view class="list" id='wrapper' wx:for="{{cartItems}}" wx:key 阅读全文
posted @ 2020-07-17 16:30 茗涵 阅读(743) 评论(0) 推荐(0) 编辑
摘要: <!-- wxml --> <view class='cartMain'> <view wx:for="{{cartItems}}" wx:key="key" wx:for-index="index"> <view data-id="{{item.id}}" class='cart-box' dat 阅读全文
posted @ 2020-07-17 16:24 茗涵 阅读(195) 评论(0) 推荐(0) 编辑