02 2022 档案
摘要:下载CentOS镜像 下载网址:阿里云镜像 选择版本(这里我使用的7) 选择isos/ 选择Minimal.iso,这个版本是最小镜像安装:没有图像界面 只有命令行 将CentOS安装到VM16中 注:网络适配器选择NAT,其他的自定义即可 1. 进入虚拟机后出现以下界面 Install CentO
阅读全文
摘要:RandomAccessFile是什么? RandomAccessFile既可以读取文件内容,也可以向文件输出数据。同时,RandomAccessFile支持“随机访问”的方式,程序快可以直接跳转到文件的任意地方来读写数据。 由于RandomAccessFile可以自由访问文件的任意位置,所以如果需
阅读全文
摘要:题目详情 题解与和知识点 getline(cin,str)输入一行 直接cin>>str只能接收空格之前的字符串。 #include <iostream> #include <string> #include <algorithm> using namespace std; int main() {
阅读全文
摘要:不可编辑: <textarea disabled="disabled"></textarea> 如果仅仅用于禁止输入(只读,但有用),使用readonly属性 <textarea readonly="readonly"></textarea> 让textarea没有黄框且不能拖拽: textarea
阅读全文
摘要:<script> function backAndFresh(){ var url =document.referrer; window.location=url; } </script> <input class="btn btn-default" onclick="backAndFresh()"
阅读全文
摘要:import VueRouter from 'vue-router' 改为 import * as VueRouter from 'vue-router'
阅读全文
摘要:定义实体类 import java.io.Serializable; public class User implements Serializable { private static final long serialVersionUID = 1L; int Customer; String n
阅读全文
摘要:为<a></a>添加属性target="_blank|_self|_parent|_top|framename" <a class="thumbnail" target="_blank|_self|_parent|_top|framename"> 为表单添加属性target="_blank" <fo
阅读全文
摘要:搜索框 <form method="get" id="form"> <div class="input-group" style="margin-top: 100px;margin-left: 500px;margin-right: 500px;"> <span class="input-group
阅读全文
摘要:情况一: 一定到加上type属性 <button type="button"></button> 情况二: 若type为sumit属性,将代码改为 <button type="submit" class="submit_button" onClick=“submitAction();return f
阅读全文
摘要:下载网址 https://adbshell.com/downloads 什么是ADB? adb全称Android Debug Bridge,是Android SDK中的一个工具, 使用adb可以直接操作管理Android模拟器或者真实的Andriod设备,就是起到调试桥的作用。 adb工具包一般只是
阅读全文
摘要:有一杯密封饮料,它的名字叫做“SDK”。 饮料上插着吸管,吸管的名字叫“API”。 把你叫做“XX系统”。
阅读全文
摘要:jsp代码 <input type="file" id="file" onchange="getfilename()"> <input type="text" name="bookImg" id="value" required hidden> js代码 <script> function getf
阅读全文
Could not resolve XML resource [null] with public ID [-//Sun Microsystems, Inc.//DTD Web Application
摘要:找到tomcat中的context.xml配置文件 打开之后查找<Context>找到之后将其修改成<Context xmlBlockExternal="false">即可
阅读全文
摘要:项目地址 https://gitee.com/heziyan_code/note-book 项目结构 Room数据库:AppDatabase/User/UserDao Main界面:将List中的内容显示出来 Edit界面:编辑内容 Room数据库 关于Room的基本用法请看官网介绍:https:/
阅读全文
摘要:普通对话框的创建 初始化方法 public Dialog onCreateDialog(User user) { // Use the Builder class for convenient dialog construction AlertDialog.Builder builder = new
阅读全文
摘要:什么是Adapter? Adapter 对象充当AdapterView视图和底层数据之间的桥梁。适配器提供对数据项的访问。Adapter 还负责为android.view.View数据集中的每个项目制作一个。 简单来说,Adapter提供了一个将其他View嵌套进RecycleView的方法,使每个
阅读全文
摘要:git add.//添加到暂存区 git commit -m "提交的信息" git push//提交到远程
阅读全文
摘要:使用Inten的putExtra传递 第一个Activity中 //创建意图对象 Intent intent = new Intent(this,TwoActivity.class); //设置传递键值对 intent.putExtra("data",str); //激活意图 startActivi
阅读全文
摘要:Android Studio默认继承AppCompatActivity(有Bar的),使用onCreate(null)无法刷新。 1、当前Activity要继承Activity,而不是默认的AppCompatActivity 2、使用onCreate(null);刷新页面
阅读全文