摘要: 1,编写xml代码 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.an 阅读全文
posted @ 2021-06-02 15:15 阿向向 阅读(187) 评论(0) 推荐(0) 编辑
摘要: ListView类 ListView类是Android程序开发中经常用到的组件,该组件必须与适配器配合使用,由适配器提供显示样式和显示数据。 适配器接口 Adapter 适配器Adapter是连接后端数据和前端显示的接口,是数据和UI(View)之间一个重要的纽带。 在常见的ListView、Gri 阅读全文
posted @ 2021-06-02 15:10 阿向向 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 本人在node中上传文件到Git仓库时报错; 原因是 node_modules 的文件问题 1,解决方法;git 忽略 node_modules 修改 gitignore 这个文件 //修改gitignore 文件后提交 D:\node.jsFile>git add .gitignore D:\no 阅读全文
posted @ 2021-05-31 10:27 阿向向 阅读(73) 评论(0) 推荐(0) 编辑
摘要: 1,安装驱动、模块 express npm install express 2,编写js代码 //导入express模块 const express = require('express'); //创建一个名为app的Express应用 const app = express(); //设置访问根路 阅读全文
posted @ 2021-05-31 09:22 阿向向 阅读(50) 评论(0) 推荐(0) 编辑
摘要: 1, 全局安装express-generator npm install express-generator -g 2,创建名称为myapp的Express应用 express --view=pug myapp D:\node.jsFile\ch08\express-generator>expres 阅读全文
posted @ 2021-05-31 08:53 阿向向 阅读(312) 评论(0) 推荐(0) 编辑
摘要: 1,准备工作: 安装MySQL2 驱动(库名称为mysql2 ): npm install mysql2 2,编写js代码: 2-1,数据库 查询 数据js代码 const mysql = require('mysql2') const connection = mysql.createConnec 阅读全文
posted @ 2021-05-30 11:28 阿向向 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 1,准备工作: 安装MySQL2 驱动(库名称为mysql2 ): npm install mysql2 2,编写js代码: // 隐式建立连接 var mysql = require('mysql2'); var connection = mysql.createConnection( { 'ho 阅读全文
posted @ 2021-05-30 11:05 阿向向 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 1,编写js代码 //引入包 // const mongoose = require('mongoose'); // 建立 到mongoDB 的连接 const mongoose = require('mongoose'); // mongoose.connect('mongodb://localh 阅读全文
posted @ 2021-05-26 22:16 阿向向 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 1,编写xml代码 <?xml version="1.0" encoding="utf-8"?> <!-- 线性布局LinearLayout 将组件按照水平或垂直方向排列。 1) 设置线性布局为水平方向 android:orientation = "horizontal” 2) 设置线性布局为垂直方 阅读全文
posted @ 2021-05-26 15:10 阿向向 阅读(356) 评论(0) 推荐(0) 编辑
摘要: 1,编写xml代码 <?xml version="1.0" encoding="utf-8"?> <!-- 相对布局RelativeLayout --> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android 阅读全文
posted @ 2021-05-25 15:15 阿向向 阅读(213) 评论(0) 推荐(0) 编辑