上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页
摘要: 效果图: 代码: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> body,html{ background: #FC466B; /* fallback for o 阅读全文
posted @ 2022-10-08 09:16 最帅爸爸 阅读(64) 评论(0) 推荐(0)
摘要: 一:创建一个新的工程,项目初始化 npm init -y 二:搭建项目框架 三:编写main.js文件内容,在index.js中引入,在把index.js引入到index.html中 例: export default()=>{ function computer(){ let h2=documen 阅读全文
posted @ 2022-10-04 18:07 最帅爸爸 阅读(1761) 评论(0) 推荐(4)
摘要: 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 最帅爸爸 阅读(178) 评论(0) 推荐(0)
摘要: //获取ico元素 var link = document.querySelector("link[rel*='icon']"); link.href = "image/public/" +??? //直接动态绑定标题 document.title = ??? 阅读全文
posted @ 2022-09-21 20:04 最帅爸爸 阅读(34) 评论(0) 推荐(0)
摘要: 一:导入TypeScript npm i typescript 或者 npm i typescript -g(全局导入) 二:编译Ts文件为Js(道理跟Sass转Css一样) 在当前文件目录终端中输入:tsc 文件名称.ts 然后就会得到一个同名的.js文件 三:引用js 新建一个html的页面,在 阅读全文
posted @ 2022-09-21 15:00 最帅爸爸 阅读(29) 评论(0) 推荐(0)
摘要: wx.request({ url: api.api + '/weChat/api/user/myAunt', // 仅为示例,并非真实的接口地址 data: {}, method: 'GET', header: {token:'ad26e36b19fc48df914d3edf27d42ac6'}, 阅读全文
posted @ 2022-09-21 09:32 最帅爸爸 阅读(32) 评论(0) 推荐(0)
摘要: 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 最帅爸爸 阅读(56) 评论(0) 推荐(0)
摘要: student.js var express = require('express'); var router = express.Router(); const _=require("lodash"); const { MongoClient } = require("mongodb"); //依 阅读全文
posted @ 2022-09-21 08:53 最帅爸爸 阅读(34) 评论(0) 推荐(0)
摘要: removeAttribute() 例: <button @click="edit" type="button" disabled id="btnsubmit">保存</button> let btnadd=document.getElementById("btnadd");btnadd.remov 阅读全文
posted @ 2022-09-20 17:46 最帅爸爸 阅读(581) 评论(0) 推荐(0)
摘要: user-select: none; 阅读全文
posted @ 2022-09-20 17:37 最帅爸爸 阅读(38) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页