02 2020 档案

摘要:原效果 之后效果: <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>js循环判断创建新对象放数组中</title> <script type="text/javascript" src="js/jquery. 阅读全文
posted @ 2020-02-29 09:14 YJUI 阅读(1051) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>对象值去重排序</title> </head> <body> <script> let arrys = [ { serial: '1', option: '1' }, { seri 阅读全文
posted @ 2020-02-28 21:47 YJUI 阅读(229) 评论(0) 推荐(0) 编辑
摘要:onLoad: function (option) { var self = this; if(option.dealerid){ //首页进入带的参数 } } 阅读全文
posted @ 2020-02-28 15:17 YJUI 阅读(200) 评论(0) 推荐(0) 编辑
摘要:html: <link rel="stylesheet" href="css/swiper.min.css"> <div class="swiper-container s-c"> <div class="swiper-wrapper"></div> <!-- Add Pagination --> 阅读全文
posted @ 2020-02-28 10:56 YJUI 阅读(337) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Swiper demo</title> <!-- Link Swiper's CSS --> <link rel="stylesheet" href="../p 阅读全文
posted @ 2020-02-28 10:05 YJUI 阅读(1017) 评论(0) 推荐(0) 编辑
摘要:效果: <div class="relFacilityTitcon"> <i v-for="(item,index) in facilityList" :key="index" @click="changeSpan(index);" :class="{'bgcolor':spanIndex.inde 阅读全文
posted @ 2020-02-27 10:43 YJUI 阅读(3212) 评论(0) 推荐(1) 编辑
摘要:<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <style> .btn { border-radius: 0px; font-weight: 100; cursor: po 阅读全文
posted @ 2020-02-26 16:24 YJUI 阅读(450) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"> <meta name="viewport" content="width=device-wid 阅读全文
posted @ 2020-02-26 14:47 YJUI 阅读(1253) 评论(0) 推荐(0) 编辑
摘要:html中的table给导出execl ,只有table 可以 其他不行 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <script src="../../public/js/jquery.min.js"></scri 阅读全文
posted @ 2020-02-26 11:35 YJUI 阅读(259) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta http-e 阅读全文
posted @ 2020-02-26 10:39 YJUI 阅读(334) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <input type="file" onchange="show(this)"/> <img id="img" src=""> < 阅读全文
posted @ 2020-02-26 10:08 YJUI 阅读(1758) 评论(0) 推荐(0) 编辑
摘要:1.首先打开Git Bash设置名字和邮箱: git config --global user.name "你的名字" git config --global user.email“你的邮箱" 2.删除.SSH文件下的known_hosts(.SSH在C:\Users\Windows用户名目录下) 阅读全文
posted @ 2020-02-25 12:04 YJUI 阅读(644) 评论(0) 推荐(0) 编辑
摘要:在页面中引入jquery和circleChart.min.js文件。 <script src="path/to/jquery.min.js"></script> <script src="path/to/circleChart.min.js"></script> HTML结构 使用一个<div>元素 阅读全文
posted @ 2020-02-25 10:17 YJUI 阅读(1505) 评论(0) 推荐(0) 编辑
摘要:icon可以none,也可以 success wx.showToast({ title: '已提交', icon: 'success', duration: 2000 }) 阅读全文
posted @ 2020-02-19 16:21 YJUI 阅读(2784) 评论(0) 推荐(0) 编辑
摘要:1、页面文件都可以使用一套,包括js、css,区别在于在写html的时候需要写两套语言的文字,然后通过一个全局的中英文版本状态切换变量来控制是显示中文的还是显示英文的比如下列代码: <div> <span v-if="isChinese"> 我是中文字 </span> <span v-else> 我 阅读全文
posted @ 2020-02-19 13:37 YJUI 阅读(254) 评论(0) 推荐(0) 编辑
摘要:<input type="number" max="10" min='1' id='number'> <script> document.getElementById("number").addEventListener("input",function(event){ event.target.v 阅读全文
posted @ 2020-02-18 16:28 YJUI 阅读(6098) 评论(0) 推荐(0) 编辑
摘要:@font-face { font-family: vwfont; src: url(/shop-m/public/fonts/VWText-Regular.otf); } @font-face { font-family: hyqh40; src: url(/shop-m/public/fonts 阅读全文
posted @ 2020-02-18 16:26 YJUI 阅读(515) 评论(0) 推荐(0) 编辑
摘要:可用到截取文字过多的问题,取0到6之间的字符,不包含6title.substring(0,6)+'...'; 阅读全文
posted @ 2020-02-18 16:15 YJUI 阅读(367) 评论(0) 推荐(0) 编辑
摘要:问题 : 在项目实际开发中会出现详情页很长 并且里边有切签,可是往往切签会挤到页面的最下面,切换时观看很不方便,为了用户体验更好些 解决方案: 当点击切签时使导航条置顶,切签下对应的内容从第一条展示,导航条是一个悬浮的效果,滚动条滚动到相应内容的时候导航条跟随内容 当点击切换时导航条加class = 阅读全文
posted @ 2020-02-18 16:10 YJUI 阅读(520) 评论(0) 推荐(0) 编辑
摘要:v-for: v-for ='item,key of data' v-for ='item,index in data' @click='' @click='pop.show=false' @click='proviceFn(item)' :class='' <li id="sheng" :clas 阅读全文
posted @ 2020-02-18 14:37 YJUI 阅读(359) 评论(0) 推荐(0) 编辑
摘要:支付问题回调跳不过去,这个经常用于一些防盗链接,比如微信公众平台的图,QQ空间的图,加了这个不会被屏蔽 <meta name="referrer" content="never"> 阅读全文
posted @ 2020-02-18 10:41 YJUI 阅读(134) 评论(0) 推荐(0) 编辑
摘要:BOM:浏览器对象模型 新窗口打开window.open(url)当前页打开:location.href = url 阅读全文
posted @ 2020-02-18 10:39 YJUI 阅读(259) 评论(0) 推荐(0) 编辑
摘要:外层display: flex;flex-wrap: wrap; 里层 width:49% 阅读全文
posted @ 2020-02-18 10:36 YJUI 阅读(22565) 评论(0) 推荐(0) 编辑
摘要:1、小程序中图片转成64位的 转换地址: http://tool.chinaz.com/tools/imgtobase/ css样式: .left-menu .li .menu-text .icon{ display: inline-block; width: 20rpx; height: 10rp 阅读全文
posted @ 2020-02-18 10:34 YJUI 阅读(256) 评论(0) 推荐(0) 编辑
摘要:<html> <head> <meta charset="UTF-8"> <script src="http://apps.bdimg.com/libs/jquery/1.7.2/jquery.min.js"></script> <style> #xuanzhun{ -webkit-transiti 阅读全文
posted @ 2020-02-18 10:31 YJUI 阅读(1030) 评论(0) 推荐(0) 编辑
摘要:在最后一项元素使用样式: margin-left: auto; 阅读全文
posted @ 2020-02-18 10:29 YJUI 阅读(6868) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>选项卡-vue</title> <link rel="stylesheet" type="text/css" href="public.css"> </head 阅读全文
posted @ 2020-02-18 10:26 YJUI 阅读(347) 评论(0) 推荐(0) 编辑
摘要:全局变量app.globalData 本地缓存wx.setStorageSync(KEY,DATA)wx.getStorageSync(KEY)wx.getStorageInfoSyncwx.removeStorageSync(KEY)wx.clearStorageSync() 通过key-valu 阅读全文
posted @ 2020-02-18 09:55 YJUI 阅读(494) 评论(0) 推荐(0) 编辑
摘要:小程序中默认是不支持html格式没有<p>标签,但是有些接口需要返回带有标签的,例如 : 隐私协议; 解决方法: 小程序中有一个富文本标签组件,前端可以解析H5标签就是 rich-text、wxParse 一、<rich-text> : <rich-text nodes="{{content}}"> 阅读全文
posted @ 2020-02-17 16:58 YJUI 阅读(5881) 评论(0) 推荐(0) 编辑
摘要:微信小程序ajax函数封装 阅读全文
posted @ 2020-02-17 15:55 YJUI 阅读(1140) 评论(0) 推荐(0) 编辑
摘要:微信小程序适配 阅读全文
posted @ 2020-02-17 15:06 YJUI 阅读(376) 评论(0) 推荐(0) 编辑
摘要:一、请求发送 携带 code 到后台换取 openid var that = this; wx.login({ success(res) { console.log(res); var code = res.code wx.request({ url: 'http://localhost//wech 阅读全文
posted @ 2020-02-17 14:59 YJUI 阅读(2701) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示