<img :src="`data:image/jpg;base64,${codeSrc}`" class="verify-code__img" @click="getVerifyCode" /> Data URI scheme支持的类型有: data:,文本数据 data:text/plain,文本 ...
分类:
其他好文 时间:
2020-04-29 16:27:48
阅读次数:
72
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title></title> 6 <style> 7 #div1{width: 200px;height:200px;background-color:red;positi ...
分类:
其他好文 时间:
2020-04-29 12:36:53
阅读次数:
46
方法一: HTML <div id="app"> <button @click="getData($event,'100')">点我</button> </div> JS methods : { getData(e,num) { console.log(num); // 输出 100 } } 方法二 ...
分类:
其他好文 时间:
2020-04-29 12:31:50
阅读次数:
127
<template> <div> <div> <div class="switch-panel" @click="isflag" :class="{'switch-left': flag,'switch-right': !flag}"> <span class="switch-ico"></span ...
分类:
其他好文 时间:
2020-04-28 22:47:27
阅读次数:
138
安装 npm i react-router-dom -- save<Router basename="/admin"> <Route path="/" exact component={()=>{<div>首页</div>}}> <Route path="/about" exact componen ...
分类:
其他好文 时间:
2020-04-28 20:11:16
阅读次数:
55
<template> <wg-section> <div class="video-details-box"> <div style="float: left;width: 930px;"> <widget-box style="margin-bottom: 10px; overflow: hidd ...
分类:
其他好文 时间:
2020-04-28 16:53:19
阅读次数:
65
我们可以用弹框的形式来实现 1、给下一步按钮添加点击事件: <div class="next-btn-wrap"> <a class="btn btn--m btn--red" href="javascript:;" @click="nextConfirm">下一步</a> </div> <scri ...
分类:
其他好文 时间:
2020-04-28 16:49:41
阅读次数:
58
1、给删除图标添加点击事件: <!-- 删除地址 --> <a href="javascript:;" class="addr-del-btn" @click="delAddress(index)"> <svg class="icon icon-del"> <use xlink:href="#ico ...
分类:
其他好文 时间:
2020-04-28 11:21:06
阅读次数:
63
html <p ref="p">这是文字</p> <button @click="copy">点击复制上面内容</button> js data() { return { copyText: "" }; }, methods: { copy() { this.copyText = this.$ref ...
分类:
其他好文 时间:
2020-04-28 09:31:47
阅读次数:
203
在vue中,可以使用现有的框架,例如element-ui或者ant-design等来直接实现上传文件和下载文件。 但是我不想使用框架,直接用js来实现。 一、上传文件 1.编写页面 //上面这个按钮是用来显示上传按钮的 <div class="addFile"> <button @click="tr ...
分类:
Web程序 时间:
2020-04-27 15:38:55
阅读次数:
164