自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(106)
  • 资源 (3)
  • 收藏
  • 关注

原创 vue 当{{}}没有值出现【】

v-cloak不需要表达式用法:这个指令保持在元素上直到关联实例结束编译。和 CSS 规则如 [v-cloak] { display: none } 一起用时,这个指令可以隐藏未编译的 Mustache 标签直到实例准备完毕。示例:[v-cloak] { display: none;}d

2018-01-05 17:09:31 1522

转载 ios点击瞬间有黑影

*{-webkit-tap-highlight-color: rgba(0,0,0,0);-webkit-tap-highlight-color:transparent;}  解决个人使用有效1、-webkit-tap-highlight-color:rgba(255,255,255,0)可以同时屏蔽ios和android下点击元素时出现的阴影。备注:trans

2018-01-05 10:57:51 1111

原创 mint-ui 时间插件使用及获取选择值

div > {{pickerValue}}div>mt-datetime-picker ref="picker" 每一个都要填上这一条open type="time" @confirm="handleConfirm" 设置点击确定 v-model="pickerValue">mt-datetime-picker>data () { return { pickerVal

2018-01-04 20:13:39 16205

原创 vue 传值及判断

{{z.year}}-{{z.day}} {{x.type}} {{x.type}} 起止时间 <mt-datetime-picker ref="picker" type

2018-01-02 18:46:44 4144

原创 sessionStorage保存删除应用

sessionStorage.setItem('objStr', name) 保存 objStr为自定义名字 name为传参 单个传值用‘’sessionStorage.getItem('objStr')应用sessionStorage.clear('objStr')删除delate (item) { var num = this.cc.indexOf(

2017-12-28 19:24:23 1991

原创 axios传参及应用

1.路径:http://localhost:8081/#/test?name=1跳转跳转可传多个参数使用:this.$route.query.id2.路径:http://localhost:8081/#/test/1跳转路由:{ path: '/coach:id', name: 'coach', component:

2017-12-28 19:17:40 855

原创 axios 使用

安装npm i axios在main.js里加入import axios from 'axios';Vue.prototype.$http=axios;使用this.$http.get('http://ud.cn/v1/test').then(response => { console.log(response.data)}, respon

2017-12-25 20:16:19 279

原创 apicloud获取手机唯一标识

ul v-if="dataHasLoaded"> li>引擎版本信息: {{ver}}li> li>系统类型: {{sType}}li> li>系统版本: {{sVer}}li> li>设备标识: {{id}}li> li>设备型号: {{model}}li> li>设备名称: {{name}}li> li>网络状态: {{cType}}li> li>主窗口名字:

2017-12-25 10:33:44 5168

原创 js 加密base64

加密有三种js 2 // -------以下为js function Base64() { // private property _keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; // public method

2017-12-25 10:22:20 314

原创 多次点击ajax传入数据,数据重复,获取最后一次ajax。

1写了 我点 我点function ajaxz(url,zh,jc){ $.ajax({ method:'post', url:url, dataType:"json", data:zh, success:function(data){ var func=callback(data,jc) func() }

2017-11-27 23:07:13 2501 1

原创 ajax之后on绑定事件,第一次ajax可以。第二次点击不行。on执行两次

$('.right').off('click','.tabDel').on('click','.tabDel',function()第一种阻止on  $('.right .tabDel').unbind('clock');在执行之后加入。第三种,在里面加阻止冒泡

2017-11-26 23:25:24 1881

原创 获取vue window值

$(function(){ var str=window.location.href var strs=str.split('=',) console.log(strs.pop())// 获取网址等于号后面的数 })

2017-11-25 17:25:31 8988

原创 模拟登录 快捷键

登录 返回 function text1(){ $('.btn').css({'color':'red','border':'1px solid #green'}) }// 在input框里才内按下下回车并执行函数 $('input').focus(function(){ $(document).keydown(function(e){

2017-11-25 17:00:46 256

原创 input checkbox勾选怎么点击去掉勾

去不掉!!!!!!!!!于是换了个方法就是重新替换一个$(".xzen").delegate(".finishs","click",function(){//$('.finishs').click(function(){var logi=$(this).parent().prev().children().is(':checked')var fins=$(this).is(':

2017-11-23 23:06:45 2917

原创 Bootstrap-select 多选下拉框(官网的js地址错误)

多选:--> 苹果 菠萝 香蕉

2017-11-22 16:20:58 693

原创 提交数据为两个值为一个数组,提交数据库

$(".button").click(function () { var a =[]; $(".table-shu").each(function(index) { a[index]={}; var c=$(this).find('.act').attr('schedule_class_

2017-11-16 13:12:17 614

原创 append之后click失效

$("div").delegate("button","click",function(){ }); div为点击事件的最外层容器,button为点击事件的class,

2017-11-15 19:55:28 1162

原创 三种情况下的全选,打钩,不让打钩,空

*{ margin: 0; padding: 0; } ul{ list-style: none; } .all{ width: 20px; height: 20px; border: 1px solid #333333; border-radius:10px; display: inline-block; } li{

2017-11-15 19:45:07 877

原创 四层树状数据展示,无样式

ul{ list-style: none; } .two{ display: none; } .three{ display: none; } .four{ display: none; } 第一层 第二层

2017-11-14 18:46:49 559

原创 二层树状数据展示附带样式全选

* { margin: 0; padding: 0; } ul { list-style: none; } .table-head { width: 100%; background: red; } .table-head p { float: left; background: #f3f3f3; line-hei

2017-11-14 18:38:09 372

原创 jquery 点击除本身外其他地方隐藏

$("#test").click(function(e) { e?e.stopPropagation():event.cancelBubble = true; }); $(document).click(function() { $("#test").fadeOut();e?e.stopPropagation():event.cancelBubble

2017-11-13 12:42:19 4071

原创 js 输入年月得出当月多少天

function getDaysInMonth(year,month){ month = parseInt(month,10); var temp = new Date(year,month,0); return temp.getDate();}console.log(getDaysInMonth(2017,2)) 2017,2为获取到的值可替换

2017-11-13 11:59:16 1613

原创 模拟下拉框,IPAd,iOS不兼容

*{margin: 0;padding: 0;} .dian-ul { display: none; width: 100px; height: 100px; position: absolute; left: 0; top: 20px; } .dian{ width: 60px; height: 100px

2017-11-09 20:15:23 792

原创 圆球canvas图,类似进度条

body{background-color: #fff}@-webkit-keyframes load {  0% {    stroke-dashoffset: 0;  }}@keyframes load {  0% {    stroke-dashoffset: 0;  }}.progress {  position: relative; 

2017-11-09 19:58:22 873

原创 简单圆球水波动。手写

* { margin: 0; padding: 0; } .nei { width: 400px; height: 400px; background: red; opacity: 0.2; border-radius: 150px; position: absolute; left: -100px;

2017-11-09 19:51:59 771

原创 input框微信Web阻止软键盘弹出。

readonly标签,及另一种兼容IE写法; &lt;script&gt;     // 样式 style="ime-mode:disabled" 禁止中文输入   function noPermitInput(e){            var evt = window.event || e ;           if(isIE()){               evt....

2017-11-09 19:42:00 6020

gif录制工具gif录制工具

gif录制工具

2022-11-22

自定义时间组件.zip

element 自定义 本日 本周 本月 本年 昨日 两种方法 父组件引入 获取的时间戳 timeConb(val) { console.log(val); this.purchaseDate = val; }, 清空方法 this.$refs.cleartime.cleartime()

2021-05-21

element 全选记忆

全选记忆参考

2020-11-15

thre.tsx按钮点击多选

多选按钮,取消第一个,在次点击取消确认,就是多选的按钮,按钮,按钮,按钮,按钮,按钮,按钮,按钮,按钮

2020-05-25

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除