编程笔记
-
毫秒值的概念和作用
Date表示特定的瞬间 精确到毫秒 毫秒:千分之一 1000毫秒=1秒 特定的瞬间:一个时间点 一刹那时间 比如:2022年 09:55:45:333 瞬间 毫秒值的作用:可以对时间和日期进行计算 比如:2022-01-02到2023-05-07进行计算…
-
css自定义滚动条样式
要实现一个自定义的滚动条样式,例如下图 在webkit中实现,需要滚动条的div加上class='section'即可 /* 滚动条宽度 */ .section::-webkit-scrollbar { width: 10px; } /* track滚动条未覆盖区域 */ .section::-w…
-
接口概念与生活举例和接口的定义基本格式
接口概念与生活举例 接口,是Java语言中一种引用类型,是方法的集合,如果说类的内部封装了成员变量、构造方法和成员方法,那么接口的内部主要就是封装了方法,包含抽象方法(JDK 7及以前),默认方法和静态方法(J…
-
首页可以进去,其他页面一点击跳转出现The requested URL * was not found on this server.;
检测你的apache开启了rewrite_module模块, 如果开启了Apache的rewrite_module模块: 在项目目录添加.htaccess文件。 如果没有开启了Apache的rewrite_module模块: 找到apache的httpd.conf文件 LoadModule rewr…
-
向上转型和向下转型
1对象向上转型其实就是多态写法 格式 父类名称 对象名 = new 子类名称; 含义右侧创建一个子类对象把它当做父类来看待使用 向上转型一对是安全的 从小范围转向了大范围 创建了一致猫当做动物看待 没问题 向上转换称…
-
css补漏笔记
一.text-align 只有对行内级元素生效 justify 两端对齐 [ text-align: justify ] [ 最后一行呢就正常不生效,你要强制生效 [ text-align-last : justify ] 二. word-spacing 字与字之间的间距 word-spac…
-
GitHub - Add Remote Using Git Gui on Windows
GitHub is a web-based hosting service for software development projects that use the Git revision control system. It is used to share code with other people and a GitHub account is free for open sour…
-
Blogger - SyntaxHighlighter HTML Configuration
Blogger, the blog-publishing service from Google, does not provide a syntax highlighter out of the box. This means you need to resort to third-party solutions in order to have syntax highlighting in …
-
JSF - PrimeFaces Hello World Example using Jetty and Maven
PrimeFaces is an open source component library for JavaServer Faces (JSF). It provides a collection of mostly visual components (widgets) that can be used by JSF programmers to build the UI for a web…
-
JMS - ActiveMQ Message Priority Example
Priority levels are a powerful instrument on JMS messages which allow building robust applications where for example peak traffic will not block important messages (set with a higher priority) from g…