首页 > 新文章
  • Vue3.0环境搭建 is a project mainly written in , based on the .安装最新版nodejs Node.jshttps://nodejs.org/zh-cn/安装过程非常傻瓜,一直下一步到完成 ---------------------------------------- 然后win+R cmd 输入node -v,我这里安装的是v12.22.4 显示如下信息就代表安装成功了 --...

  • 数据库jdbc property文件配置信息片段 is a project mainly written in , based on the .#mysql.properties jdbc.url=jdbc:mysql://localhost:3306/mybatis?serverTimezone=UTC&characterEncoding=utf8&useUnicode=true&autoReconnect=true&failOverReadOnly=false&user=...

  • 如何防止被白漂 is a project mainly written in , based on the .  【材料】《资治通鉴》汉纪 孝献皇帝 兴平元年 公元194年 术初许以策为九江太守,已而更用丹杨陈纪。后术欲攻徐州,从庐江太守陆康求米三万斛;康不与。 术大怒,遣策攻康,谓曰:“前错用陈纪,每恨本意不遂。今若得康,庐江真卿有也。” 策攻康,拔之,术复用其故吏刘勋为太守;策益失望。 【译文】袁术一开始承诺以孙策为九江太守,后...

  • SpringMVC常用Maven POM.xml依赖包片段 is a project mainly written in , based on the . junitjunit4.10org.spring...

  • 基于mybatis声明SQL Session对象 is a project mainly written in , based on the ./*声明SQL Session对象*/ SqlSession sqlSession = new SqlSessionFactoryBuilder().build(Resources.getResourceAsReader("mybatis-config.xml")).openSession();...

  • 隐藏输入框光标 is a project mainly written in , based on the ./*隐藏输入框光标*/ input {color: transparent;text-shadow: 0 0 0 white; /*这里设置字体颜色*/ }...

  • 两种方法动态加载外部原生JS文件 is a project mainly written in , based on the .//方法1----------------------------------------document.write("");//方法2----------------------------------------/** 动态加载JS @para...

  • 关闭、刷新、跳转、离开当前网页前提示 is a project mainly written in , based on the ./*关闭、刷新、跳转、离开当前网页前提示*/ onbeforeunload = function () {return false; };  ...

  • 强制关闭网页 is a project mainly written in , based on the ./*强制关闭网页*/ function closeWebPage() {document.querySelector("html").style.display = "none";let ua = navigator.userAgent, w = top;if (ua.indexOf("MSIE") > 0) {if (ua.inde...

  • 代码动态加载css is a project mainly written in , based on the ./*代码动态加载css*/ function loadCSS(url) {let css = document.createElement("link");css.type = "text/css";css.rel = "stylesheet";css.href = url;document.querySelector("head")...

  • 判断屏幕宽高比是否为16:9 is a project mainly written in , based on the ./*判断屏幕宽高比是否为16:9*/ function isScreen16to9() {return window.screen.height / window.screen.width === 9 / 16; }...

  • 镂空文字CSS is a project mainly written in , based on the ./*镂空文字*/ -webkit-text-fill-color:transparent; -webkit-text-stroke:1px #000;  ...

  • 兼容IE11 is a project mainly written in , based on the .

    div自己移除自己/移除div下面的所有子元素

    Div自己移除自己/移除div下面的所有子元素 is a project mainly written in , based on the .let remove = {/*div自己移除自己*/myself: function (sel) {sel = typeof sel === "string" ? document.querySelector(sel) : sel;sel && sel["parentNode"] && sel.parentNode.removeCh...

  • Iframe几种常用代码片段 is a project mainly written in , based on the .

  • 电话号码正则表达式键盘弹起验证 is a project mainly written in , based on the . 

    清空控制台Console.log()信息

    清空控制台Console.log()信息 is a project mainly written in , based on the ./*清空控制台信息*/function clearConsole() {console.clear();let fontFamily = "微软雅黑";let fontSize = 40;let fontWeight = "bold";let backgroundColor = "green";console.log("%c有...

  • 避开移入移出事件内部div干扰事件,e是function(e)的e is a project mainly written in , based on the .// 避开移入移出事件内部div干扰事件 // e是function(e)的elet element = e.toElement || e.relatedTarget;if (element.className != "你要避开的className") {// 执行}// 测试用例console.log(element.cla...

  • 常用jQuery ajax代码片段 is a project mainly written in , based on the .    $.ajax({type: "POST",url: "http://127.0.0.1:9999/api/demo/CURD",data: JSON.stringify({token: "sgToken",jsonPath: "user",username: "测试账号",password: "123456",name:...

  • 打印几个关键的java环境变量 is a project mainly written in , based on the .echo %JAVA_HOME%echo %JAVA_HOME%echo %MAVEN_HOME%...