- 博客(20)
- 收藏
- 关注
转载 jQuery中li的前添加和后追加
<html> <head> <meta charset="utf-8"> <title></title> <script src="./jquery-2.2.4.min.js"> </script> <script type="text/javascript"> $(function(){ ...
2021-10-13 16:07:26 617
转载 前端webSocket js基本用法
//避免重复链接var lockReconnect = false;//路径var wsUrl = $("#wsUrl").val();console.log("路径" + wsUrl);//webSocket对象var ws;//时间间隔var tt;if ("WebSocket" in window) { console.log("支持WebSocket")} else { alert("该浏览器不支持WebSocket")}//创建ws连接var crea...
2021-10-13 10:23:23 749
转载 记echarts 地图点击区域显示高亮问题
mapData.forEach(item=>{ item.itemStyle= { normal: { areaColor:'#AADDFF'}, emphasis: { areaColor: '#c5e6fd'}};})option = { series: [ { zoom: 1.25, aspectScale: 1, name: '贵州地图', type: 'map', mapType: '贵州', //...
2021-08-16 11:56:51 2023
原创 vue实现鼠标移入移除照片时两个按钮的显隐
vue实现鼠标移入移除照片时两个按钮的显隐(如图)。1、<template> (部分代码)<div class="box-img" v-on:mouseover="mouseoverImg(item,index)" v-on:mouseout="mouseoutImg(item,index)">(item,index是外层循环是数值和下标)<el-imagestyle="width:100%;height:120px":src="ite...
2021-03-09 17:23:30 759
原创 Vue 腾讯防水墙验证
1、data(){return{requestId:'',//验证码接口返回信息areaCode:86,//区号phoneNum:'',//手机号phoneCode:'',//验证码countTime:'',//倒计时appId:'10000003',...
2020-02-26 11:48:36 1050 1
原创 vue 导出excel表
1、//导出接口exportfunctiondownloadCollectList(params){returnrequest({url:'/apiUrl/api/ex/award/collect/export/awards',method:'get',params:params,responseType:'b...
2020-02-26 10:54:29 133
转载 react 国际化 react-intl-universal
https://blog.csdn.net/zhuming3834/article/details/98847188
2020-01-07 15:23:36 100
原创 vue 页面监听滚动条
项目要求写商城商品详情的时候需要的效果跟大疆官网商城效果一样。样式:(右侧商品基本信息高度超过左侧商品照片时,页面整体滚动到浏览器最顶部时左侧照片固定,右侧继续滚动,滚到左右两侧底部对齐的时候,一起向上滚)1、app.vue @scroll="showHeader"事件绑到 #app元素上 <router-view:scrollTopForApp='scr...
2019-11-07 15:22:49 2479
原创 中英文切换之路由
在router文件下的index.js中importVueI18nfrom'vue-i18n'Vue.use(VueI18n)consti18n=newVueI18n({locale:window.localStorage.getItem('xxx-lang')||'',//语言标识messages:{'zh-...
2019-10-31 17:43:22 441
原创 前端调scatter--区块链
/**@Description:scatter.js*@Author: wy*@Date:2019-07-0614:45:59*@LastEditTime:2019-09-1716:05:43*/1、scatter.jsimportScatscatter.jsterJsfrom'scatterjs-core'importEosP...
2019-10-29 11:00:59 352
转载 Vue项目中使用svg图标
一、配置1.安装依赖:npm install svg-sprite-loader --save-dev2.配置build文件夹中的webpack.base.conf.js,主要在两个地方添加代码,如下图所示exclude: [resolve('src/icons')],{ test: /\.svg$/, loader: 'svg-spr...
2019-09-26 14:58:21 119
原创 vue tab滑动(非组件)
<divclass="shop"><!--手写tab--><divclass="shop-tab"><ulclass="tab-tit"><listyle="font-size:16px;font-weig...
2019-09-18 11:08:12 448
原创 vue商品未付款倒计时
//支付倒计时ComputetTime(data){letst=data.currentTime.replace(/\-/g,'/'),//当前服务器时间ct=data.createTime.replace(/\-/g,'/')//创建订单时间letts=newDate(st).getTime(),...
2019-09-18 11:02:24 1153
转载 vue组件 订单支付15分钟倒计时
//支付倒计时 ComputetTime(data) { let st = data.currentTime.replace(/\-/g, "/"),//当前服务器时间 ct = data.formatCreateTime.replace(/\-/g, "/");//创建订单时间 let ts = new Date(st).getTime(), ...
2019-09-17 14:51:53 1698
原创 记点击按钮删除input输入的内容
<template> <div class="usde-financial-notfound"> <div class="middle"> <p>USDE</p> <input v-model="data" type="text" placehol...
2019-07-04 17:46:36 2123
原创 vuei18n中英文切换(前后端)
前端:1、下载包2、src下建立如图所示文件夹及各文件。index.jsimport VueI18n from 'vue-i18n'import Vue from 'vue'Vue.use(VueI18n)const i18n = new VueI18n({ locale: window.localStorage.getItem('xxx-lang') ...
2019-07-04 17:23:07 1867
原创 vue前端转后端时间格式
import * as PRODUCTDETAILS from '../service/api/financialDetail'method:{//转化时间格式formatDate(now) {var year = now.getFullYear()var month = now.getMonth() + 1var date = now.getDate()return ...
2019-07-04 16:57:33 3834
转载 Vue 实现横向滑动效果 从小到大
原文:https://blog.csdn.net/qq_31490071/article/details/87864706
2019-06-19 17:48:42 1611
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人