Javascript操作DOM
Javascript操作DOM该笔记暂未上线
1234567891011//nodeType属性function count(n){ var num=0; if(n.nodeType==1) num++;//n.nodeName为标签名 var son=n.childNodes; for(var i=0;i<son.length;i++) num+=count(son[i]); return num;};console.log(count(document));//元素总数
JDBC笔记
JDBC笔记导入1234//导入mysql-connector-j-8.0.33.jar包public static void main(String[]args)throws Exception{ Class.forName("com.mysql.cj.jdbc.Driver");//加载驱动程序};
DriverManager类1234567891011121314/* 其他: deregisterDriver(Driver driver) 从DriverManager中删除指定驱动程序 getConnection(String url) 连接指定数据库 getConnection(String url,String user,String password) 同上 getDriver(String url) 获取指定url驱动程序Driver对象 getLoginTimeout() 获取登录最长等待时间(s) getLogWriter() 获取指定日志记录器对象 println(Str ...
Java加密
Java加密MD5加密123456import java.math.BigInteger;import java.security.MessageDigest;String str="..."; //明文MessageDigest md=MessageDigest.getInstance("MD5");md.update(str.getBytes());System.out.println(new BigInteger(1,md.digest()).toString(16));
MD5的具体实现1234567891011121314151617181920212223import java.security.MessageDigest;import java.security.NoSuchAlgorithmException;public class MD5Util{ public static String md5Encryp(String str){ if(str==null||str.length( ...
Java笔记
Java笔记生成.exe方法准备manifest.mf Manifest-Version:1.0
1jar cvfm *.jar manifest.mf 目录名称
安装exe4j
Project type选”JAR in EXE” mode
Application info 文件名、.exe导出位置
Executable info 选 GUI程序、控制台晨雾、web服务 exe文件名、图标 是否允许多开 32-bit or 64-bit中勾上 Manifest options中DPI选Always
Java invocation右侧+添加Archive选择.jar包 右下角…添加主类
JRE 最低最高 最低选1.7 表中3个删掉,添加自己的jre
Splash screen启动画面
Messages默认英语 没汉语
另一种:Launch4j
注解12345678910/*** *@version *@author *@since //最早JDK * *@see //引用其他类的文档 *@param ... //方法参数 *@return //返回值 *@throws ... ...
HTML5 & CSS3 & Javascript笔记
HTML5 & CSS3 & Javascript笔记???vscode:Ctrl+Shift+F9
1hh -decompile <输出文件夹路径> <要反编译的CHM文件全路径名>
HTML4文档基本结构123456789<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML1.0 Transitional//EN" "http://www.w1.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w1.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> <title>文档标题</title> & ...
C++高级语法
C++高级语法联合体1234union infounion{ int age; char name[32],address[];}uinfo;
enum枚举类型1enum fourseasons={spring=1,summer,automn,winter};
显式转换123#include <cstdlib>char *str1="1234",*str2="12.345";printf("%d %f\n",atoi(str1),atof(str2));
指针1234567891011121314151617181920212223int i,*p;p=&i,i=2;printf("%d=%d\n",i,*p);//-----------------------------int num[5]={12,34,56,78,90},*p;p=num;printf("%d\n",*(p+2));/ ...
Batch学习笔记
Batch学习笔记
学习网站:
https://zhuanlan.zhihu.com/p/415626343
https://www.cnblogs.com/yhlx/articles/2866854.html
https://www.xiaohongshu.com/explore/6329a832000000001801beab
https://www.xiaohongshu.com/explore/637dd69f000000001c005f85
https://blog.csdn.net/weixin_43165135/article/details/127575873
https://zhuanlan.zhihu.com/p/446337414
注释12:: 注释rem 注释
echo123456echo. #空行 同:echo, echo; echo+ echo[ echo] echo/ echoecho offecho onecho #显示状态@echo off #不显示本身echo %变量%
局部变量123setlocal #局部变量set 变量=...endl ...
西部大学生信息素养大赛笔记
西部大学生信息素养大赛笔记政府开放资源思政与党史信息资源
习近平系列重要讲话数据库:http://jhsjk.people.cn/
新华社官网-学习进行时专栏:http://www.news.cn/politics/xxjxs/index.htm
人民网官网-学习路上专栏:http://cpc.people.com.cn/xuexi/
党史学习教育:http://dangshi.people.com.cn/
开放数据资源
国家统计局网站-数据查询系统:https://data.stats.gov.cn/index.htm
世界银行等国际组织-开放数据平台:https://data.worldbank.org/
反诈防骗信息资源
中国互联网联合辟谣平台:http://www.piyao.org.cn/
医卫信息资源
卫健委官网(医生的资质):http://www.nhc.gov.cn/
国家药品监督管理局(药品、化妆品、医疗器械):https://www.nmpa.gov.cn/datasearch/home-index.html
文教信息资源
学信网(判断毕业证书、学位证书的真 ...
Hexo博客搭建
Hexo 博客搭建一、安装Node .js和Git
验证:
123node -vnpm -vgit --version
觉得速度慢可以直接用cnpm或pnpm:
1npm install -g cnpm --registry=https://registry.npmmirror.com
本贴时间遥远,可能各Node组件版本有更新,据说部分新版本组件的配置文件格式、插件安装方式和Bug解决方式都不一样,需要自己想办法解决。
二、安装Hexo1npm install hexo-cli -g
验证:
1hexo -v
三、Github配置建立Github仓库左上角选择New repositories,仓库名起名为Monoceros406.github.io,并建立README文件,然后Creating repository
本地博客文件新建文件夹存放网站,并Git Bash Here。
12345678910#连接国内服务器(淘宝)npm install -g cnpm --registry=https://registry.npm.taobao.org#安装Hexocnpm ...