摘要: 引言 基于该文仿写:web 完整轮播图——带只拖鞋去流浪 https://zhuanlan.zhihu.com/p/138232728 组件源码:https://gitee.com/leftstan/rotation.git 组件效果:https://www.jianguoyun.com/p/Dd8 阅读全文
posted @ 2021-09-22 20:18 Left_Stan 阅读(442) 评论(0) 推荐(0) 编辑
摘要: 列表渲染 使用map函数遍历数组,生成一个html列表(表头内容) const heads = ["name", "sno", "sex", "age"]; const thead = heads.map((head) => <td key={head}> {head} </td> ); const 阅读全文
posted @ 2021-08-09 08:57 Left_Stan 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 什么是异步 在JavaScript中,程序的执行是顺序的,是单线程的,即一次只能做一件事情 比如:页面在加载图片或进行大量运算时,用户将无法进行其它操作 这个时候控制权并没有在用户手上,整个浏览器就像冻结一样,这叫做阻塞 异步就是为了能够解决这类问题而出现的 异步实现 1. 异步callbacks( 阅读全文
posted @ 2021-05-24 16:03 Left_Stan 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 项目总览 项目结构 运行效果 mock.js login.js, menus.js和students.js分别对应不同功能的具体数据,接口方法和接口路径 如students.js 通过一个数组来模拟后端的数据库 let students = [ { name: '末日铁拳', sno: '18251 阅读全文
posted @ 2021-05-06 10:41 Left_Stan 阅读(462) 评论(0) 推荐(0) 编辑
摘要: 相关信息 源码链接: https://github.com/LeftStan/vocabtest 技术标签: html, css, js, jquery, thymleaf, springboot 效果演示 主界面 小学词汇,初中词汇,高中词汇测试界面 考研词汇,四级词汇,六级词汇,托福词汇,GRE 阅读全文
posted @ 2021-04-22 11:27 Left_Stan 阅读(1262) 评论(1) 推荐(0) 编辑
摘要: 代码 from docx import Document from docx.opc.constants import RELATIONSHIP_TYPE as RT import re #存放超链接 target = {} #存放超链接文本 text = [] d = Document("mate 阅读全文
posted @ 2021-04-17 17:48 Left_Stan 阅读(1391) 评论(0) 推荐(0) 编辑
摘要: 首先从github上获取别人扒好的词库json数据 https://github.com/kajweb/dict 数据格式大致如下 接着就可以直接使用python处理数据,并插入数据库了 import sys from jsonpath import jsonpath import json imp 阅读全文
posted @ 2021-04-04 20:11 Left_Stan 阅读(920) 评论(0) 推荐(0) 编辑
摘要: 谜题 1 保持一致 s = 'Alice' #不能修改字符串s[0] = 'B' # print默认末尾换行# end = '' 末尾不换行,加空格 print(s, end=' ') Python中的列表(list)可理解为元素的序列或数组 L = [1, 2, 'A', [3,4] ] 元组与列 阅读全文
posted @ 2021-03-17 16:14 Left_Stan 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 使用框架 采用了MVVM框架,即Model View ViewModel模式 Model:接收后端发送的实体数据 ViewModel:处理Model的数据并发送给View View:展示处理好的数据 项目结构 具体实例 逻辑层 在ReaderClientApplication.kt文件中定义toke 阅读全文
posted @ 2021-03-08 20:31 Left_Stan 阅读(1020) 评论(0) 推荐(0) 编辑
摘要: RecycleView简介 增强版的ListView 能够实现横向滚动 RecyclerView是support-v7包中的新组件 是一个强大的滑动组件 与经典的ListView相比,同样拥有item回收复用的功能 RecyclerView封装了viewholder的回收复用 也就是说Recycle 阅读全文
posted @ 2020-11-08 12:13 Left_Stan 阅读(721) 评论(0) 推荐(0) 编辑