#####效果:div内部swiper滑动时,外部div背景图片随着变化 ######思路:获取swiper的索引,用:style定义背景图片 //template //外部背景图片 <div class="cont-box" :style="{backgroundImage: 'url(' + b ...
分类:
其他好文 时间:
2021-04-15 11:59:42
阅读次数:
0
一、代码展示 <template> ... <div class="loading-animation-box" > <img class="loading-animation" width="26" height="28" src="../../../static/images/balabla.p ...
分类:
Web程序 时间:
2021-04-14 12:20:55
阅读次数:
0
我们点击项目上方的 Add file,选择 creat new file 名称填写 LICENSE, 右侧便会出现按钮 Choose a license template 选择你要的证书,填写 年份 和 name, 点击 Review and submit 选择master分支,点击 commit ...
分类:
其他好文 时间:
2021-04-14 12:10:36
阅读次数:
0
#_*_ encoding: utf-8 _*_ @author: ty hery 2019/12/20 from flask import Flask, render_template, request, url_for, redirect from flask_sqlalchemy import ...
分类:
其他好文 时间:
2021-04-13 12:32:12
阅读次数:
0
1、includes()、startsWith()、endsWith()2、repeat()3、模板字符串(template string)1、includes()、startsWith()、endsWith()includes():返回布尔值,表示是否找到了参数字符串。startsWith():返 ...
分类:
其他好文 时间:
2021-04-13 12:20:52
阅读次数:
0
领导第一次让我做h5支付宝支付的时候,去了支付宝开放平台,一顿上上下下左左右右,看完了长呼一口气。 这个支付好像没我啥事儿啊!小伙伴儿们自行查看:https://opendocs.alipay.com/open/203/105285 关于手机网页内支付宝支付,核心代码就是,后端会返回给你一个form ...
分类:
移动开发 时间:
2021-04-13 12:09:33
阅读次数:
0
<template> <div> <mescroll-vue ref="mescroll" :up="mescrollUp" @init="mescrollInit"> <div class="events-content">事件内容 </div> </mescroll-vue> </div> </ ...
分类:
移动开发 时间:
2021-04-13 11:57:53
阅读次数:
0
最近在研发“移动端触屏滑动”(手机端在线做题翻页)功能的过程当中,使用了Swiper插件,官方参考地址:swiper 写好静态模板,一切顺利,切换动态数据加载时,不能上下切换、前后滑动,动态统计template模板加载的数据量,绑定到swiper-slide类里面,虽然可以解决这个问题, 在用户体验 ...
分类:
其他好文 时间:
2021-04-12 12:15:18
阅读次数:
0
之前也讲过了,actions中是用来操作异步代码的,由于在mutations写异步操作会导致devtools工具记录不到state的变化,因此才有actions的存在,下面是基本的使用,如下: 点击按钮,发布到actions: <template> <div> <button @click="toA ...
分类:
其他好文 时间:
2021-04-12 11:52:14
阅读次数:
0
在之前也演示过了mutation的基本使用,里面是定义一系列的函数,但函数的组成部分是有讲究的,如下: 因此,在commit提交的时候,参数1是事件类型。那如何给mutation的方法传入参数呢?也挺简单的,如下: 传入字符串或常量时: <template> <div> <button @click ...
分类:
其他好文 时间:
2021-04-12 11:40:26
阅读次数:
0