<li v-for="(item,index) in listTemp" :key="index">
<div v-for="(cell,i) in item" :key="i&q...
yekong
4年前 (2021-05-02)
喜欢
vue未渲染前会出现{{}}
在渲染的根节点添加v-cloak 可以避免{{}}出现
<style type="text/css">
[v-cloak] {
display: none;
}
</style&g...
yekong
4年前 (2021-04-27)
喜欢
<el-input type="text" v-model="user" @keyup.enter.native="submitForm()" placeholder=""></el-input>
...
yekong
4年前 (2021-04-14)
喜欢
<input v-on:keyup.enter="submit">
<input @keyup.enter="submit">
...
yekong
4年前 (2021-04-14)
喜欢
this.data={
data:1,
data2:2
}
delete(this.data["data"]);
delete(对象["需要删除的字段"]);
...
yekong
4年前 (2021-04-13)
喜欢
程序更容易理解
问题:函数或者方法输入输出的参数类型,外部条件等
动态语言的约束:需要手动调试等过程,
有了Typescript:代码本身就可以回答上诉问题
效率更高
在不同的代码块和定义中进行跳转
代码自动补全
更少的错误
编译期间能够发现大部分错误
杜绝一些比较常见错误
非常...
yekong
4年前 (2021-04-13)
喜欢
vue.config.js 添加配置
var _Ip='线上地址'
module.exports = {
devServer: {
proxy: {
'/productData': {
...
yekong
4年前 (2021-04-11)
喜欢
找到vue.config.js 添加 lintOnSave:false
module.exports={
lintOnSave:false
}
...
yekong
4年前 (2021-04-10)
喜欢
这里使用了momentjs插件用来格式化时间。
html
<p>{{time}}</p>
js
setInterval(function () {
that.time = moment().format("YY...
yekong
4年前 (2021-04-08)
喜欢
name自定义文件名
headers自定义headers
<el-upload
action=""
list-type="picture-card"
...
yekong
4年前 (2021-04-08)
喜欢