声明:本站文章均为作者个人原创,图片均为实际截图。如有需要请收藏网站,禁止转载,谢谢配合!!!

layui常用弹窗

layui常用弹窗 layer.alert('内容'); layer.alert('内容', { icon: 1, skin: 'layer-ext-moon' //该皮肤由layer.seaning.com

vue封装公共全局函数

1、common.js定义两个公共函数```jsfunction toast(title = '', icon = 'none') { uni.showToast({ title: title, icon: icon });}function myRequest(url = "", data = {}, method = 'POST'){ return new Promise

vue/js/jq验证邮箱、手机号

1、vue/js验证邮箱function (content){ return /^\w+@[0-9a-z]+\.[a-z]+$/.test(content)}2、vue/js/jq验证邮箱function (content){ return /^[0-9]{11}$/ . test(content)}

uniCloud使用云函数

uniCloud使用uni-app 是是一个使用 Vue.js 开发所有前端应用的框架,开发者编写一套代码,可发布到iOS、Android、Web(响应式)、以及各种小程序(微信/支付宝/百度/头条/QQ/钉钉/淘宝)、快应用等多个平台。1、创建uni-app项目在 HBuilder 选择文件,新建(如果提示需要安装插件,按照提示安装即可,稍后会要求登陆,如果没有 HBuilder 账户,

vue同时仅允许一个视频播放

vue使用vue-video-player播放视频相关问题1、绑定点击播放事件<video @play="playVideo('v1')"></video>2、播放一个视频,自动暂停播放其他视频let videos = document.getElementsB

JS常用操作

1、格式化日期时间function getCurrentDate(format = 2) { var now = new Date(); var year = now.getFullYear(); //得到年份 var month = now.getMonth();//得到月份 var date = now.getDate();//得到日期

vue开发、生产环境package.json配置启动命令

1、根目录新建.env.dev文件NODE_ENV=developmentBASE_API_URL=http://127.0.0.1:8080/apiBASE_IMG_URL=http://static.cdn.com2、修改package.json文件"scripts": { "serve": &q

js使用mysql数据库

1、安装mysqlnpm install --save mysql2、配置config.jsconst mysql = require('mysql')const client = mysql.createConnection({ host: 'localhost', user: 'ba

Editor.md基本使用和图片上传

editor.md是一款markdown编辑器官网 https://pandao.github.io/editor.md/1、代码<!DOCTYPE html><html lang="zh"> <head> <meta charset=