为提升开发效率,HBuilderX将 uni-app 常用代码封装成了以 u 开头的代码块,如在 template 标签内输入 ulist 回车,会自动生成如下代码: 注意需保障uni-list组件在项目的components目录下。比较简单的方式,是新建项目时,选 uni ui项目模板,在里面即可 ...
分类:
移动开发 时间:
2020-07-22 20:48:33
阅读次数:
117
springboot 使用restTemplate发送post请求,传json数据,结果报错401 Unauthorized: [no body] 添加相应的数据格式就解决了 @Bean public RestTemplate registerTemplate() { RestTemplate re ...
分类:
其他好文 时间:
2020-07-22 20:32:37
阅读次数:
286
可以通过scope.row.属性名和三目运算符给特殊的属性值设定样式 类似下面的效果 <el-table-column property="examine" label="审核情况" width=""> <template slot-scope="scope"> <div :class="scope ...
分类:
其他好文 时间:
2020-07-22 20:15:42
阅读次数:
98
例如: @Test public void test() { String sql1 = "insert into emp values(null,?,?,?)"; //?占位符 jdbcTemplate.update(sql1,"李四",24,"男"); } 报错:Caused by: com.m ...
分类:
数据库 时间:
2020-07-22 20:15:07
阅读次数:
91
1、首先我们可以看下官网的例子: <template> <el-button type="text" @click="open">点击打开 Message Box</el-button> </template> <script> export default { methods: { open() ...
分类:
其他好文 时间:
2020-07-22 20:12:04
阅读次数:
407
template <div class="each-one-in-list"> <div class="show-icon">进行中</div> <div class="show-signal"></div> <div class="main-title" title="test"> <strong ...
分类:
Web程序 时间:
2020-07-22 02:10:44
阅读次数:
211
一般使用场景: 登录的错误验证 或者 强提醒 template 部分 <img id="barcode" :class="{ shaking: toShake}" @click="handleShake" /> javascript 部分 export default { data(){ retur ...
分类:
Web程序 时间:
2020-07-22 01:58:56
阅读次数:
133
el-table(:data="tableData", :stripe="true", border) el-table-column(prop="id", label="活动ID", width="85") el-table-column(prop="activityName", label="活 ...
分类:
其他好文 时间:
2020-07-21 23:09:44
阅读次数:
101
####子组件,有一个childMethod方法 <template> <view> </view> </template> <script> export default { data(){ return { } }, onLoad(){ }, methods:{ childMethod() { ...
分类:
其他好文 时间:
2020-07-21 22:12:51
阅读次数:
88
1,vue中安装wangEditor 使用的npm安装 npm install wangeditor --save 2,创建公用组件 在components中创建wangEnduit文件夹 组件内容为: <template lang="html"> <div class="editor"> <div ...
分类:
其他好文 时间:
2020-07-21 21:57:00
阅读次数:
128