摘要:
<?php //php连数据库 //mysqli_connect(域名,账号,密码,库名) header("content-type:text/html;charset=utf-8"); // $host = 'localhost:3306'; //本地环境的账户名和密码 $user = $mi=' 阅读全文
posted @ 2021-04-22 18:49
干饭吧
阅读(169)
评论(0)
推荐(0)
摘要:
// path 路径 // type 数据提交的方式 get/post // data 前端需要带的数据 {} // dataType 默认是json格式 // successCB 数据拿到之后所要做的事情 function function ajax(option) { const { path 阅读全文
posted @ 2021-04-22 18:48
干饭吧
阅读(35)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content 阅读全文
posted @ 2021-04-21 23:52
干饭吧
阅读(138)
评论(0)
推荐(0)
摘要:
//第一种:是数字的取整,因为math.random()的取值范围是大于等于0,小于1,取不到1 document.write(parseInt(Math.random()*3))//结果是0,1,2 //第二种:要想取到从1-3的随机数必须从要在产生随机数的后面加上1才可以从1开始取值,娶不到0; 阅读全文
posted @ 2021-04-16 11:22
干饭吧
阅读(731)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content 阅读全文
posted @ 2021-04-16 01:37
干饭吧
阅读(72)
评论(0)
推荐(0)
摘要:
Js 中为数组提供了多种遍历方式 const ary = ['a', 'b', 'c']; // 最基本的方式, 只能遍历下标有序递增的数组 for (let i=0; i<ary.length; i++) { console.log(i, ary[i]); // 0 a 1 b 2 c } // 阅读全文
posted @ 2021-04-15 20:19
干饭吧
阅读(55)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
posted @ 2021-04-15 20:07
干饭吧
阅读(1065)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
posted @ 2021-04-14 19:34
干饭吧
阅读(34)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
posted @ 2021-04-14 19:26
干饭吧
阅读(93)
评论(0)
推荐(0)
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content 阅读全文
posted @ 2021-04-14 19:20
干饭吧
阅读(64)
评论(0)
推荐(0)