图书相关的操作基于后台接口数据进行操作: 需要调用接口的功能点: 功能 请求方式 请求路由 ① 图书列表数据加载 GET http://localhost:3000/books ② 添加图书 POST http://localhost:3000/books ③ 验证图书名称是否存在 GET http ...
分类:
其他好文 时间:
2020-06-19 15:51:04
阅读次数:
49
1、批量插入 <insert id="insertBatch" parameterType="java.util.List"> insert into t_student(name, age, class) values <foreach collection="list" item="item" ...
分类:
数据库 时间:
2020-06-18 19:33:43
阅读次数:
118
安装依赖 yarn add @babel/plugin-proposal-decorators 修改package.json文件中的babel依赖 "babel": { "plugins": [ [ "@babel/plugin-proposal-decorators", { "legacy": t ...
分类:
其他好文 时间:
2020-06-18 17:55:37
阅读次数:
73
1、写法上面的不同 vue使用的扩展的html写法,就是一个文件里有html、js、css,分开写,react使用的是jsx语法,提倡all in js,也就是样式、js、html混合。 2、渲染方式的不同 vue中对于循环和判断使用的是v-if,v-for等vue指令进行vue组件的渲染,reac ...
分类:
其他好文 时间:
2020-06-18 12:59:48
阅读次数:
56
1.for方法跳出循环 function getItemById(arr, id) { var item = null; for (var i = 0; i < arr.length; i++) { if (arr[i].id == id) { item = arr[i]; break; } } r ...
分类:
其他好文 时间:
2020-06-18 10:51:56
阅读次数:
59
string str ="11- 3 [1,2,3,4] Q ERTY$ %^ 23"; 取第一个字符(“1”) var first = str.Substring(0, 1); 取最后一个字符(“3”) var last = str.Substring(str.Length - i,1); 取特定 ...
/** * Notes:省市级联动 * Created by xxg@seabig.cn * Date: 2020/6/4 * Time: 17:24 */ public function getCityData() { $cityList = $this->getAll(array("pid = ...
分类:
Web程序 时间:
2020-06-17 18:26:50
阅读次数:
150
1. Fragment : 可以理解为空标签。 类似与 微信小程序的 <block> 2. 实例: import { Fragment } from 'react' class LI extends React.Component { constructor (props) { super(prop ...
分类:
其他好文 时间:
2020-06-17 15:34:31
阅读次数:
59
flutter的介绍 Flutter是谷歌的移动UI框架,可以快速在iOS和Android上构建高质量的原生用户界面。 Flutter可以与现有的代码一起工作。在全世界,Flutter正在被越来越多的开发者和组织使用,并且Flutter是完全免费、开源的。 flutter的特点 跨平台能力,支持多个 ...
分类:
其他好文 时间:
2020-06-17 14:20:23
阅读次数:
93
(function() { let myTool = { $: function(id) { return typeof id "string" ? document.getElementById(id) : null }, screenClient: function() { if (window ...
分类:
其他好文 时间:
2020-06-16 23:05:47
阅读次数:
54