posts - 139,comments - 1,views - 38143
09 2022 档案
三分钟学会短信验证
摘要:一:打开APISpace官网,登录,搜索短信验证,点击立即购买,新用户会送十条短信 https://www.apispace.com/ 二:打开我的Api,找到刚刚购买的短信流量包,复制提供的代码 三:打开IDEA,导入xml文件,编写控制类 <!-- 短信验证--> <dependency> <g 阅读全文
posted @ 2022-09-30 09:08 最帅爸爸 阅读(318) 评论(0) 推荐(0) 编辑
支付宝沙箱服务 (结合springboot实现,这里对接的是easy版本,工具用的是IDEA,WebStrom)
摘要:一:打开支付宝开发平台,登录,然后点击控制台 https://open.alipay.com/ 二:滚动到底部,选着沙箱服务 三:获取到对接要用的appId和公钥私钥 四:打开IDEA导入所需的xml文件 <!-- 支付宝--> <!-- https://mvnrepository.com/arti 阅读全文
posted @ 2022-09-29 19:37 最帅爸爸 阅读(416) 评论(0) 推荐(0) 编辑
prompt
摘要:prompt()方法用于弹出框,并且附带一个文本输入框 alert("请猜测一个1-100之间的数") var a = Math.floor(Math.random() * 100); alert(a); while(1){ var c =(prompt("请输入数字")); if (c == a) 阅读全文
posted @ 2022-09-25 14:56 最帅爸爸 阅读(174) 评论(0) 推荐(0) 编辑
标题,ico动态化
摘要://获取ico元素 var link = document.querySelector("link[rel*='icon']"); link.href = "image/public/" +??? //直接动态绑定标题 document.title = ??? 阅读全文
posted @ 2022-09-21 20:04 最帅爸爸 阅读(32) 评论(0) 推荐(0) 编辑
TypeScript(一)基本使用
摘要:一:导入TypeScript npm i typescript 或者 npm i typescript -g(全局导入) 二:编译Ts文件为Js(道理跟Sass转Css一样) 在当前文件目录终端中输入:tsc 文件名称.ts 然后就会得到一个同名的.js文件 三:引用js 新建一个html的页面,在 阅读全文
posted @ 2022-09-21 15:00 最帅爸爸 阅读(26) 评论(0) 推荐(0) 编辑
微信小程序之发起请求
摘要:wx.request({ url: api.api + '/weChat/api/user/myAunt', // 仅为示例,并非真实的接口地址 data: {}, method: 'GET', header: {token:'ad26e36b19fc48df914d3edf27d42ac6'}, 阅读全文
posted @ 2022-09-21 09:32 最帅爸爸 阅读(28) 评论(0) 推荐(0) 编辑
Node.js(七)MySql+ajax
摘要:Api.js const express=require("express"); const router=express.Router(); const mysql = require('mysql') const mysqlutil=require("./mysql"); let pool=my 阅读全文
posted @ 2022-09-21 08:57 最帅爸爸 阅读(53) 评论(0) 推荐(0) 编辑
Node.js(六)MongoDB
摘要:student.js var express = require('express'); var router = express.Router(); const _=require("lodash"); const { MongoClient } = require("mongodb"); //依 阅读全文
posted @ 2022-09-21 08:53 最帅爸爸 阅读(32) 评论(0) 推荐(0) 编辑
js移除style样式
摘要:removeAttribute() 例: <button @click="edit" type="button" disabled id="btnsubmit">保存</button> let btnadd=document.getElementById("btnadd");btnadd.remov 阅读全文
posted @ 2022-09-20 17:46 最帅爸爸 阅读(575) 评论(0) 推荐(0) 编辑
css使文字变为只读
摘要:user-select: none; 阅读全文
posted @ 2022-09-20 17:37 最帅爸爸 阅读(32) 评论(0) 推荐(0) 编辑
前端微信登录获取code,userInfo,openid
摘要:getUser(e) { wx.getUserProfile({ desc: '用户完善会员资料', success: res => { let userInfo = res.userInfo; uni.showLoading({ title: '登录中' }); wx.login({ //成功放回 阅读全文
posted @ 2022-09-20 09:51 最帅爸爸 阅读(87) 评论(0) 推荐(0) 编辑
Node.js(六)连接MongoDB进行数据访问
摘要:npm init -y(初始化项目) npm install mongodb --save(引入MongoDB) const { MongoClient } = require("mongodb"); //依赖MongoClient let client=new MongoClient("mongo 阅读全文
posted @ 2022-09-19 11:59 最帅爸爸 阅读(49) 评论(0) 推荐(0) 编辑
Node.js(五)学生管理CRUD
摘要:npm init -y(初始化项目) npm install express(引入express) npx express-generator -e(自动生成模板。添加对 ejs 模板引擎的支持) npm i --save lodash(引入lodash) app.js var createErro 阅读全文
posted @ 2022-09-19 11:47 最帅爸爸 阅读(43) 评论(0) 推荐(0) 编辑
Node.js(四)json
摘要:npm init -y(初始化项目) npm install express(引入express) npx express-generator -e(自动生成模板。添加对 ejs 模板引擎的支持) npm i --save lodash(引入lodash) 路由配置carApi.js const e 阅读全文
posted @ 2022-09-19 11:34 最帅爸爸 阅读(107) 评论(0) 推荐(0) 编辑
Node.js(三)Lodash
摘要:npm init -y(初始化项目) npm i --save lodash(引入lodash) const _=require("lodash"); let stus=[ {id:1,name:"tom",age:40}, {id:2,name:"xiao",age:28}, {id:3,name 阅读全文
posted @ 2022-09-19 08:59 最帅爸爸 阅读(190) 评论(0) 推荐(0) 编辑
Node.js(二)express
摘要:npm init -y(初始化项目) npm install express(引入express) npx express-generator -e(自动生成模板。添加对 ejs 模板引擎的支持) app.js const express=require("express"); const path 阅读全文
posted @ 2022-09-19 08:52 最帅爸爸 阅读(30) 评论(0) 推荐(0) 编辑
Node.js(一)基本node.js读取删除
摘要:npm init -y(初始化项目) npm uninstall (xxx模块名称)=>(移除模块) var text2=require("./text2"); //解构 const {a:A,b:B}=require("./text2") console.log(A,B) console.log( 阅读全文
posted @ 2022-09-19 08:38 最帅爸爸 阅读(66) 评论(0) 推荐(0) 编辑
微信小程序分享好友,朋友圈
摘要:<template> <view> <button open-type="share">发送给好友</button> </view> </template> <script> export default { data() { return { } }, onLoad(){ wx.showShare 阅读全文
posted @ 2022-09-17 22:27 最帅爸爸 阅读(98) 评论(0) 推荐(0) 编辑
js模块化开发
摘要:外部js文件 function a(a,b) { console.log(a+b);} 导出:module.exports ={a}; 引用: import {a} from (路径); 阅读全文
posted @ 2022-09-17 20:48 最帅爸爸 阅读(18) 评论(0) 推荐(0) 编辑
时间戳转换器
摘要:function date(date) { var date = new Date(date * 1000);//时间戳为10位需*1000,时间戳为13位的话不需乘1000 var Y = date.getFullYear() + '-'; var M = (date.getMonth()+1 < 阅读全文
posted @ 2022-09-17 20:38 最帅爸爸 阅读(178) 评论(0) 推荐(0) 编辑
fieldset
摘要:fieldset标签《表格分组标签》 <fieldset> <legend>添加学生</legend> <form method="post"> <p> <label>姓名:</label> <input type="text" name="name"> </p> <p> <label>年龄:</l 阅读全文
posted @ 2022-09-14 22:07 最帅爸爸 阅读(54) 评论(0) 推荐(0) 编辑
css百叶窗
摘要:效果图: css代码块: <style> *{//默认样式清除 margin: 0; padding: 0; } .content{//设置外层div的宽高,超出后隐藏 margin: 100px auto; width: 1100px; height: 500px; overflow: hidde 阅读全文
posted @ 2022-09-01 11:20 最帅爸爸 阅读(160) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示