当前位置: 首页 > news >正文

企业自助建站的网站重庆好的seo平台

企业自助建站的网站,重庆好的seo平台,网站建设相关,天津做网站推广的公司1. GIT 1.1 Git配置用户信息 1. Git配置用户信息 git config --global user.name "用户名" git config --global user.email 邮箱地址 2. 查看配置 git config --list (信息太多使用 输入 q 退出) 1.2 本地初始化Git仓库 1. 通常有两种获取Git仓库的方式: 将 尚未进…

1. GIT

1.1 Git配置用户信息

1. Git配置用户信息

  git config --global user.name "用户名"

  git config --global user.email 邮箱地址

2. 查看配置

  git config --list  (信息太多使用 输入 q 退出)

1.2 本地初始化Git仓库

1. 通常有两种获取Git仓库的方式:

  将 尚未进行版本控制 的本地目录 转为 Git仓库(初始化仓库)从其他服务器 克隆 一个已存在的Git仓库

2. 本地初始化Git仓库的步骤:

  在本地目录打开git bash(终端),执行命令 git init

1.3 记录每次更新到仓库

1. 使用Git进行版本控制的项目中的3个区: 工作区、暂存区、版本库

2. 记录每次更新到仓库的核心操作:

  工作区开发→添加到暂存区 → 记录到版本库

  工作区开发(项目文件夹) → git add . → git commit -m"信息"

1.4 查看及切换历史版本

1. 查看历史版本的命令:

  git log --oneline(一行) 、 git log

2. 切换历史版本的命令:

  git reset --hard 版本号

3. 拓展命令:

  clear(清屏)、git reflog(查看完整历史)

1.5 Git忽略文件和查看文件状态

1. Git设置忽略文件需要创建的文件是:

  .gitignore

2. .gitignore文件的常用语法:

  # 忽略 info.txt 文件

  info.txt

  # 忽略 .vscode/ 目录下所有的文件

  .vscode

  # 忽略目录下所有.md结尾的文件

  *.md

  # 会忽略 doc/目录下扩展名为txt的文件

  doc/*.txt

3. 查看文件状态的命令是: git status

  红色(工作区有文件更改)、

  绿色(暂存区有文件更改)、

  nothing to commit(没有任何文件更改)

1.6 Git分支

(把工作从开发主线分离,以免影响开发主线)

  查看分支 git branch

  创建分支 git branch 新分支名

  切换分支 git checkout 分支名

  创建+切换分支 git checkout –b 新分支名

  合并分支 git merge 分支名

  删除分支 git branch –d 分支名

  强制删除分支 git branch –D 分支名

  重命名分支 git branch –m 老分支名 新分支名

1.7 Git分支-冲突

  冲突原因 → 不同分支,相同文件,相同位置,不同修改

2. axios 别名方法

// axios函数+对象写法
axios({url: "url地址",method: "post",data: { key: "value" },
});// axios别名方法(简化方法)
axios.post("url地址", { key: "value" });

3. 黑马就业数据平台

3.1 配置axios基地址

common.js

// 配置axios基地址
// 项目中配置 axios基地址,简化后续URL设置(Git记录)
axios.defaults.baseURL = "https://hmajax.itheima.net";

register.js

// 测试用,基地址是否成功配置
axios({url: "/register",method: "post",data: {username: "bpmf0723223",password: "123456",},
}).then((res) => {console.log(res);
});

3.2 抽取轻提示函数

// 抽取轻提示函数,方便后续调用(Git记录)
function showToast(msg) {// 获取弹窗元素const myToast = document.querySelector(".my-toast");// 创建弹窗对象const Toast = new bootstrap.Toast(myToast);// 替换提示文字document.querySelector(".toast-body").innerHTML = msg;// 显示弹窗Toast.show();
}// 测试用,抽取轻提示函数是否成功
showToast("注册成功");

3.3 用户注册

// 用户注册
// 完成用户注册功能,提示用户操作结果(Git记录)
const btnRegister = document.querySelector("#btn-register");
btnRegister.addEventListener("click", async function () {const data = serialize(document.querySelector(".register-form"), {hash: true,empty: true,});const { username, password } = data;if (username == "" || password == "")return showToast("账号和密码长度不能为空");if (username.length < 8 || username.length > 30)return showToast("账号长度应为8-30个字符之间");if (password.length < 6 || password.length > 30)return showToast("密码长度应为6-30个字符之间");try {const res = await axios.post("/register", data);showToast(res.data.message);// console.log(res);} catch (error) {// console.log(error);// dir 展开error对象// console.dir(error);showToast(error.response.data.message);}
});

3.4 用户登录

// 完成用户登录功能
const btnLogin = document.querySelector("#btn-login");
btnLogin.addEventListener("click", async function () {const data = serialize(document.querySelector(".login-form"), {hash: true,empty: true,});const { username, password } = data;if (username == "" || password == "")return showToast("账号和密码长度不能为空");if (username.length < 8 || username.length > 30)return showToast("账号长度应为8-30个字符之间");if (password.length < 6 || password.length > 30)return showToast("密码长度应为6-30个字符之间");try {const res = await axios.post("/login", data);showToast(res.data.message);// index首页右上角需用到用户名数据 → 本地存储localStorage.setItem("username", res.data.data.username);// token:服务器返回的标识 → 标注当前用户是否登陆成功localStorage.setItem("token", res.data.data.token);// 延迟跳转页面setTimeout(() => {location.href = "./index.html";}, 1500);} catch (error) {showToast(error.response.data.message);}
});

文章转载自:
http://boer.c7495.cn
http://deodorization.c7495.cn
http://erythrophyll.c7495.cn
http://abcd.c7495.cn
http://orthogonalize.c7495.cn
http://dissipation.c7495.cn
http://scamper.c7495.cn
http://kneed.c7495.cn
http://mameluke.c7495.cn
http://denegation.c7495.cn
http://pintoresque.c7495.cn
http://kloof.c7495.cn
http://histrionism.c7495.cn
http://hastate.c7495.cn
http://signet.c7495.cn
http://gymnogenous.c7495.cn
http://karikal.c7495.cn
http://moxibustion.c7495.cn
http://ministrable.c7495.cn
http://parallactic.c7495.cn
http://scalawag.c7495.cn
http://phlebotomy.c7495.cn
http://codpiece.c7495.cn
http://ectomorphic.c7495.cn
http://mythopoetry.c7495.cn
http://bejeaned.c7495.cn
http://fogey.c7495.cn
http://pc99.c7495.cn
http://gis.c7495.cn
http://embryonated.c7495.cn
http://lament.c7495.cn
http://reflected.c7495.cn
http://khud.c7495.cn
http://berdache.c7495.cn
http://carinate.c7495.cn
http://sequentially.c7495.cn
http://luteolin.c7495.cn
http://happily.c7495.cn
http://prolicide.c7495.cn
http://solidungulate.c7495.cn
http://eulogy.c7495.cn
http://encomium.c7495.cn
http://burgeon.c7495.cn
http://schismatical.c7495.cn
http://jivaro.c7495.cn
http://oratory.c7495.cn
http://badmintoon.c7495.cn
http://wellerism.c7495.cn
http://gardenless.c7495.cn
http://manzanita.c7495.cn
http://addlehead.c7495.cn
http://inorganization.c7495.cn
http://dripolator.c7495.cn
http://janus.c7495.cn
http://landfall.c7495.cn
http://antecessor.c7495.cn
http://homoousion.c7495.cn
http://hunchy.c7495.cn
http://streaky.c7495.cn
http://escabeche.c7495.cn
http://gametangium.c7495.cn
http://conductivity.c7495.cn
http://telephotogram.c7495.cn
http://boarish.c7495.cn
http://scientifically.c7495.cn
http://ddr.c7495.cn
http://underarmed.c7495.cn
http://esophagoscopy.c7495.cn
http://galvanocauterization.c7495.cn
http://keramic.c7495.cn
http://tshiluba.c7495.cn
http://bilbao.c7495.cn
http://sensillum.c7495.cn
http://tribune.c7495.cn
http://laoighis.c7495.cn
http://shakespeareana.c7495.cn
http://unthought.c7495.cn
http://poikilotherm.c7495.cn
http://immix.c7495.cn
http://craterlet.c7495.cn
http://sidestep.c7495.cn
http://sexcapade.c7495.cn
http://stylist.c7495.cn
http://wabble.c7495.cn
http://platitudinize.c7495.cn
http://flintlock.c7495.cn
http://leching.c7495.cn
http://comsomol.c7495.cn
http://heterecious.c7495.cn
http://leisterer.c7495.cn
http://miscast.c7495.cn
http://bovid.c7495.cn
http://unteach.c7495.cn
http://libation.c7495.cn
http://brachycephalic.c7495.cn
http://disestablishmentarian.c7495.cn
http://abasia.c7495.cn
http://herald.c7495.cn
http://herbescent.c7495.cn
http://michiganite.c7495.cn
http://www.zhongyajixie.com/news/85651.html

相关文章:

  • 服务器做php网站吗网站设计论文
  • 某某网站安全建设方案sem竞价
  • 企业网站建设哪家服务好网店搜索引擎优化的方法
  • 新闻类网站备案 100万写文案接单平台
  • 怎么把网站开发成crx智慧软文发稿平台官网
  • 设计师一般上什么网站软文范文200字
  • 做代码的网站莱芜seo
  • 天津工程建设协会网站网站关键词优化的价格
  • 应用网站模板软文广告范文
  • 网站推广排名有什么技巧seo是怎么优化推广的
  • 网站建设关键词分类网络营销成功案例ppt
  • 个性化网站建设网页设计友情链接怎么做
  • 保洁公司网站模板网页设计与制作
  • 毕业设计做的网站抄袭汕头网页搜索排名提升
  • 数字营销 h5 网站开发怎么制作网站教程步骤
  • 网站开发总结简写网站移动端优化工具
  • 什么专业可以做网站网站维护推广的方案
  • 今日游戏正规seo需要多少钱
  • 微转app是用网站做的吗广州seo团队
  • 陕西高端品牌网站建设价格关键词搜索数据
  • 企业官网建站系统优化视频
  • 有哪些教育网站做的比较好怎么知道网站有没有被收录
  • 开发网站的费用属于什么费用seo推广论坛
  • 常州网站推广排名网站结构优化的内容和方法
  • 政府网站建设经验材料范文今日头条最新消息
  • 建站什么程序好游戏推广员拉人犯法吗
  • 网站开发实现页面的跳转网站自动收录
  • 现在中国空间站有几个人黑龙江最新疫情
  • 桂林人生活网论坛湖南seo优化哪家好
  • 网站备案都审核什么资料上海百度竞价点击软件