ICode9

精准搜索请尝试: 精确搜索
  • Vue项目实战----电商后台管理系统(第二天)2021-07-20 15:34:25

    附:https://gitee.com/zhoulililia/vue_shop 1.后台首页基本布局 打开Home.vue组件,进行布局: <el-container class="home-container"> <!-- 头部区域 --> <el-header>Header<el-button type="info" @click="logout"> 退出 </el-button

  • SpringBoot的前后端分离2021-07-20 15:00:31

    后台:gitee:https://gitee.com/zhangjiqun/background-development-demo.git docway:http://www.docway.net/project/1ghALtt7cJt/1ghALw36HiK 目录 thymeleaf模板是在java中实现前端界面开发 vue实现前后端的分离 https://www.bilibili.com/video/BV19E411v7Ty?p=4 在idea查看数

  • Element的table组件动态表头,展示复杂数据2021-07-20 10:04:32

    目录 问题描述实现方式 问题描述 问题来自于后端希望我根据她返回的数据结构展示列表信息; 数据结构如下两张图: 条目列表,包含条目Key(entry_key)和条目值列表(entry_value_list) 语言列表, language_list 需要根据entry_value_list和language_list列表的相同字段l

  • Angular 实现列表自动滚动2021-07-19 16:01:43

    前言 实现新闻列表自动滚动,类似中奖名单那种滚动,目前 js 实现的方式还是有很多相关代码的,不过这里使用 Angular 实现,其实原理差不多,正好业务需要,在此记录下如何实现。 正文 实现思路: 1. 获取页面的元素操作其滚动条 2. 当滚动条距离底部还有 10 个像素内,需要将滚动列表再次追加 3.

  • element-ui 输入框的前后缀图标 prefix-icon 和 suffix-icon2021-07-19 14:04:36

    element-ui 输入框的前后缀图标 prefix-icon 和 suffix-icon       prefix-icon表示前缀     suffix-icon表示后缀      

  • 在vite项目中使用elementPlus在打包后设置语言报错2021-07-19 13:04:03

    elemet-plus版本:1.0.2-beta.55 按照官网文档进行配置 import { createApp } from 'vue' import { ElButton, locale } from 'element-plus' import lang from 'element-plus/lib/locale/lang/zh-cn' import 'dayjs/locale/zh-cn' locale(lang)

  • Python enumerate() 函数2021-07-19 11:31:08

    描述 enumerate() 函数用于将一个可遍历的数据对象(如列表、元组或字符串)组合为一个索引序列,同时列出数据和数据下标,一般用在 for 循环当中。 Python 2.3. 以上版本可用,2.6 添加 start 参数。 语法 以下是 enumerate() 方法的语法: enumerate(sequence, [start=0]) 参数 seque

  • 2021-7-19 Frequency of the Most Frequent Element2021-07-19 04:00:24

    难度 中等 题目 Leetcode: 1838. Frequency of the Most Frequent Element   The frequency of an element is the number of times it occurs in an array.   You are given an integer array nums and an integer k. In one operation, you can choose an index of nums and

  • Selenium自动化 - 显式等待中的EC模块元素判断详解2021-07-18 22:31:19

    在显式等待WebDriverWait的until和until_not方法中我们经常要用到,它会根据网页标题、网址以及元素是否可见等条件来决定我们是否需要继续等待。我查看了一下源码,根据各大类型对它们做了个整理,方便记忆。 因为要使用 expected_conditions模块中的类,所以第一步肯定是要引入该模块,考

  • 自动填写学校每日体温上报的问卷星2021-07-18 18:31:24

    准备工作 代码内容主要是操作我们学校的文件星 主要是通过selenium操作浏览器 驱动下载(注意和自己浏览器的版本对应) Edge驱动下载 Microsoft Edge Driver - Microsoft Edge Developer 谷歌的驱动的下载镜像 ChromeDriver Mirror (taobao.org) 其他下载地址自行百度就好 将下载好的

  • 2021-07-18 selenium 初学元素定位2021-07-18 18:02:12

    元素定位有几种途径都耳熟能详 selenium定位方法 Selenium提供了8种定位方式。 find_element_by_id find_element_by_name find_element_by_xpath find_element_by_link_text find_element_by_partial_link_text find_element_by_tag_name find_element_by_class_name find_e

  • Vue重新安装测试hello1项目(一看就懂)2021-07-18 12:33:34

          不加路由, element组件,可以运行。 加了后的不能正常测试呢                    1 先加路由测试    这里软件中,会对应执行加载       加路由后,可以运行出来。   1.2 加element组件      SCSS这里选否。如果还不行,换成yes试试。           

  • selenium的WebDriver 中的几种等待--sleep()和implicitly_wait()和WebDriverWait()2021-07-17 23:05:09

    强制等待:sleep() import time sleep(5) #等待5秒 设置固定休眠时间,单位为秒。 由python的time包提供, 导入 time 包后就可以使用。缺点:不智能,使用太多的sleep会影响脚本运行速度。 隐式等待:implicitly_wait() driver.implicitly_wait(10) #隐式等待10秒 由webdriver提供的

  • Vue Element-ui 图片跟随表单一起上传2021-07-17 21:29:33

    实现例如用户注册信息填写,商品发布等等需求时,通常会有需要上传图片的需求。这个时候我们可以使用Element-UI的el-upload组件进行图片上传。 <el-upload action="https://jsonplaceholder.typicode.com/posts/" list-type="picture-card" :on-preview="handlePictureCar

  • 关于switch_to的用法场景2021-07-17 20:03:51

      基于python3的语法,driver.switch_to_alert()的表达会出现中划线,因此需要把后面的下划线改为点.一、目前接触到的switch_to的用法包括以下几种:1、 切换到制定的window_name页面      driver.switch_to.window(window_name)  2、   切换到alert弹窗     driver.switch_t

  • 引入elementui2021-07-17 11:00:02

    下载 vue add element在main.js中导入在element.js 中导入 在vue中使用

  • 用appium来操作模拟器2021-07-15 19:03:49

    1 import time 2 from appium import webdriver 3 from selenium.webdriver.common.by import By 4 from selenium.webdriver.support.wait import WebDriverWait 5 from selenium.webdriver.support import expected_conditions as Ec 6 7 # 初始化app的配置信息 8 9

  • element tree递归获取所有父级id2021-07-15 16:03:28

    data里面定义三个变量 rowList: [], parentList: [], //最终结果 reqlist: [], tree节点点击事件 handleNodeClick(data, node) { this.getParent(node); //同级tree点击时置空,也可以判断 this.reqlist = this.rowList; this.rowList = []; co

  • element ui table表头动态筛选条件2021-07-15 16:03:16

    本文主要实现:根据el-table表格数据自动生成表头筛选条件的方法,可根据表格数据动态调整。 el-table表格的表头增加筛选功能,大家平时都是怎么实现的呢?先看看官方文档的例子: 1 <template> 2 <el-button @click="resetDateFilter">清除日期过滤器</el-button> 3 <el-button @

  • element @change传递多个参数 $emit接收多个参数2021-07-15 11:06:11

    一、element @change传递多个参数 方法一 // $event就是当前选的值 <el-select v-model="value" placeholder="请选择" @change="dataChange($event, 456)> <el-option v-for="item in options" :key="item.value" :l

  • vue-element-admin 按钮级别的权限判断2021-07-15 09:32:09

    vue-element-admin 按钮级别的权限判断 参照官网进行创建权限控制js https://panjiachen.github.io/vue-element-admin-site/zh/guide/essentials/permission.html#%E6%8C%87%E4%BB%A4%E6%9D%83%E9%99%90 选用第一种  js 代码:https://github.com/PanJiaChen/vue-element-admin/tr

  • xml相关操作2021-07-15 08:00:46

    一、XML和String互转:   使用dom4j程式变得很简单 //字符串转XML String xmlStr = \"......\"; Document document = DocumentHelper.parseText(xmlStr); // XML转字符串 Document document = ...; String text = document.asXML(); //这里的XML DOCUMENT

  • Leetcode No.169 Majority Element(c++实现)2021-07-14 21:02:37

    1. 题目 1.1 英文题目 Given an array nums of size n, return the majority element. The majority element is the element that appears more than ⌊n / 2⌋ times. You may assume that the majority element always exists in the array. 1.2 中文题目 给定一个大小为 n 的

  • 【Vue】如何修改node_modules下的element-ui源码2021-07-14 17:58:04

    前言 element-ui中有一个上传组件el-upload,进度到100%,后台服务响应处理需要时间, 所以不能显示进度条到100%,要显示为99%,如下图示 改为 改动不多,可以手写上传,也可以进行修改源码,这次我们修改element-ui直接修改替换就好了 操作 下载element-ui源码 git地址:https://github

  • [LeetCode] 1157. Online Majority Element In Subarray 子数组中占绝大多数的元素2021-07-14 13:32:10

    Design a data structure that efficiently finds the majority element of a given subarray. The majority element of a subarray is an element that occurs threshold times or more in the subarray. Implementing the MajorityChecker class: MajorityChecker(in

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有