07 2022 档案
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:
阅读全文
摘要:useState
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:function getObj() { let obj = { sex:"男", age:18 }; let val = ""; //此处val是安全的,外部是无法修改的 let o = Object.defineProperty(obj, "key", { configurable: true,
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:当数据的逻辑很复杂的时候 下载计算属性中
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:#### 2.2 HelloWorld > 作用:将数据应用在html页面中 1. body中,设置Vue管理的视图<div id="app"></div> 2. 引入vue.js 3. 实例化Vue对象 new Vue(); 4. 设置Vue实例的选项:如el、data... new Vue({选
阅读全文
摘要:1. 直接下载源码然后通过路径引入 - 开发版本:https://vuejs.org/js/vue.js - 生产版本:https://vuejs.org/js/vue.min.js 2. CDN ```js <script src="https://cdn.jsdelivr.net/npm/vue
阅读全文
摘要:#### 1.5 一些链接 [Vue官方文档](https://cn.vuejs.org/) [Vue开源项目汇总](https://github.com/opendigg/awesome-github-vue) [Vue.js中文社区](https://www.vue-js.com/)
阅读全文
摘要:#### 1.4 核心特性 - 双向数据绑定 - vue(借鉴了react的虚拟DOM,借鉴了angular双向数据绑定) - 通过 **指令** 扩展了 HTML,通过 **表达式** 绑定数据到 HTML - 解耦视图与数据 - 可复用**组件** - 虚拟DOM - M-V-VM - 数据驱动
阅读全文
摘要:#### 1.3 Vue 能做什么 - 最大程度上解放了 DOM 操作 - 单页web项目(SinglePageApplication项目,例如[Worktile官网](https://worktile.com/))开发 - 传统网站开发
阅读全文
摘要:#### 1.2 为什么要学习 Vue 传统开发模式: JQuery+RequireJS/SeaJS+artTemplate+Gulp/Grunt 随着项目业务场景的复杂,传统模式已无法满足需求 就出现了Angular/React/Vue等框架 - 企业需求 - 主流框架之一(React Angul
阅读全文
摘要:#### 1.1 Vue是什么 > Vue.JS是优秀的前端 JavaScript 框架 > > react/angular/vue 库和框架的区别: - 库(如jQuery) 库是工具. 提供大量API,体现了封装的思想、需要自己调用这些API - 框架 框架提供了一套完整解决方案, 使用者要按照
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
摘要:闭包可是指有权访问另一函数作用域中的变量的函数,或者简单理解为定义在一个函数内部的函数; <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content
阅读全文
摘要:function getObj() { let obj = { sex:"男", age:18 }; let val = ""; //此处val是安全的,外部是无法修改的 let o = Object.defineProperty(obj, "key", { configurable: true,
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content
阅读全文
摘要:闭包可是指有权访问另一函数作用域中的变量的函数,或者简单理解为定义在一个函数内部的函数; <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content
阅读全文
摘要:<Radio.Group> {linksList?.map((item) => ( <Radio key={item.key} value={item.key}> {item.value} </Radio> ))} </Radio.Group>
阅读全文
摘要:200: '服务器成功返回请求的数据。', 201: '新建或修改数据成功。', 202: '一个请求已经进入后台排队(异步任务)。', 204: '删除数据成功。', 400: '发出的请求有错误,服务器没有进行新建或修改数据的操作。', 401: '用户没有权限(令牌、用户名、密码错误)', 4
阅读全文
摘要:import { Spin, Switch, Alert } from 'antd'; class Card extends React.Component { state = { loading: false }; toggle = value => { this.setState({ loadi
阅读全文
摘要:this.props.dispatch({ type: 'startpage/getStartPageByCode', payload: { code: this.props.location.query.code }, callback: (res) => { this.setState({ po
阅读全文
摘要:### Error updating database. Cause: org.postgresql.util.PSQLException: ERROR: value too long for type character varying(64) ### The error may exist in
阅读全文
摘要:()=>{this.handleSubmit(true)
阅读全文
摘要:this.props.dispatch({ type: 'activity/addActivityPopup', payload: params, callback: (res) => { if (res.returnCode 0) { message.success('新增成功'); if (fl
阅读全文
摘要:<div style={{ textAlign: 'center' }}> <Button type="primary" onClick={this.handleSubmit(false)} style={{ marginRight: '10px' }}> 保存 </Button> <Button
阅读全文
摘要:<Row gutter={12}> <Col span={12}> <Form.Item label="活动结束时间"> {getFieldDecorator('endTimeLong', { initialValue: [moment(popupByIdDetail.endTimeLong)],
阅读全文
摘要:<Row gutter={12}> <Col span={12}> <Form.Item label="活动开始时间"> {getFieldDecorator('startTimeLong', { initialValue: popupByIdDetail.startTimeLong, rules:
阅读全文
摘要:const element = <div />; 不过,React 元素也可以是用户自定义的组件: const element = <Welcome name="Sara" />; 当 React 元素为用户自定义组件时,它会将 JSX 所接收的属性(attributes)以及子组件(childre
阅读全文
摘要:定义组件最简单的方式就是编写 JavaScript 函数: function Welcome(props) { return <h1>Hello, {props.name}</h1>; } 该函数是一个有效的 React 组件,因为它接收唯一带有数据的 “props”(代表属性)对象与并返回一个 R
阅读全文
摘要:JSX 表示对象 Babel 会把 JSX 转译成一个名为 React.createElement() 函数调用。 以下两种示例代码完全等效: const element = ( <h1 className="greeting"> Hello, world! </h1> ); const eleme
阅读全文
摘要:JSX 表示对象 Babel 会把 JSX 转译成一个名为 React.createElement() 函数调用。 以下两种示例代码完全等效: const element = ( <h1 className="greeting"> Hello, world! </h1> ); const eleme
阅读全文
摘要:JSX 特定属性 你可以通过使用引号,来将属性值指定为字符串字面量: const element = <div tabIndex="0"></div>; 也可以使用大括号,来在属性值中插入一个 JavaScript 表达式: const element = <img src={user.avatar
阅读全文
摘要:const name = 'Josh Perez';const element = <h1>Hello, {name}</h1>; ReactDOM.render( element, document.getElementById('root') ); jsx语法是个表达式 可以直接声明变量
阅读全文
摘要:ReactDOM.render( <h1>Hello, world!</h1>, document.getElementById('root'); 它将在页面上展示一个 “Hello, world!” 的标题。
阅读全文
摘要:什么是组件? 官方定义:将一些简短、独立的代码片段组合成复杂的 UI 界面,这些代码片段被称作“组件”。 解读:我们可以理解为能够组成一个UI界面的每一个独立的代码片段,例如表单的代码集合,轮播图的代码集合,讲这些能够构成特定功能的代码集合我们称之为组件。 React.component子类 我们以
阅读全文
摘要:onRef={(ref) => { this.uploadImg = ref; }}
阅读全文
摘要:value too long for type character varying(64)\n### The error may exist in com/yoao/cloud/advertisemen t/persistence/mapper/ActivityPopupDao.java (best
阅读全文
摘要:我在自定义组件中定义了value值,getFieldDecorator会覆盖我们定义的值, 需要添加默认值可以使用在getFieldDecorator的时候,设置initialValue, 删除在自定义组件中定义的value就可以了!
阅读全文
摘要:<div style={{ overflow: 'hidden' }}> <Radio.Group style={{ float: 'left', marginTop: 5 }} onChange={this.handleOpenScopeType} value={openScopeType} >
阅读全文
摘要:import { Select } from 'antd'; const { Option } = Select; function onChange(value) { console.log(`selected ${value}`); } function onBlur() { console.l
阅读全文
摘要:// 父组件 import React from 'react' import Son from './son' import { Button } from 'antd' class Father extends React.Component { child: any constructor(p
阅读全文
摘要:import React from 'react' import Son from './son' class Father extends React.Component { constructor(props) { super(props) } state = { info: '父组件', }
阅读全文
摘要:import { Upload, message, Button, Icon } from 'antd'; const props = { name: 'file', action: 'https://www.mocky.io/v2/5cc8019d300000980a055e76', header
阅读全文
摘要:componentWillReceiveProps componentWillReceiveProps# void componentWillReceiveProps( object nextProps ) 当props发生变化时执行,初始化render时不执行,在这个回调函数里面, 你可以根据属性
阅读全文
摘要:{getFieldDecorator('activityTimeStamp', { rules: [{ required: true, message: '请选择活动时间' }], initialValue: [ moment(updateDataSource.startTime), moment(
阅读全文
摘要:this.props.form.validateFieldsAndScroll((err, values) => {} values可以对应表单的值
阅读全文
摘要:react项目中接口未能执行从dva.js上面找问题
阅读全文
摘要:Encountered two children with the same key, `116245139602468120654593`. Keys should be unique so that components maintain their identity across update
阅读全文
摘要:import React, { Component } from 'react'; class Edit extends Component { render() { return <div>1111</div>; } } export default Edit; 利用export导出
阅读全文
摘要:this.props.dispatch({ type: 'activity/addActivityPopup', payload: params, callback: (res) => { if (res.returnCode 0) { message.success('新增成功'); } else
阅读全文
摘要:const { dispatch, activity: { cmsPopupList = [] }, } = this.props;
阅读全文
摘要:<Row gutter={12}> <Col span={12}> <Form.Item label="活动结束时间"> {getFieldDecorator('endTimeLong', { rules: [{ required: true, message: '活动结束时间不能为空' }], }
阅读全文
摘要:const rowSelection = { selectedRowKeys, onChange: this.onSelectChange, };
阅读全文
摘要:{ name: data?.name, startTimeLong: new Date(data?.code[0]).getTime(), endTimeLong: new Date(data?.code[1]).getTime(), }, () => { this.getFrameList();
阅读全文
摘要:<Col span={8} key={index}> <Form.Item label={item.label} {...formItemLayout}> {getFieldDecorator(`${item.paramsName}`, {})( item.isRangePicker ? ( <Ra
阅读全文
摘要:<p> {moment(boothDetails.startTime).format('YYYY-MM-DD')}到 {moment(boothDetails.endTime).format('YYYY-MM-DD')} </p>
阅读全文
摘要:Warning: Each record in table should have a unique `key` prop,or set `rowKey` to an unique primary key. rowKey="code" pageIndex={pageIndex} pageSize={
阅读全文
摘要:ilter() 方法创建一个新的数组,新数组中的元素是通过检查指定数组中符合条件的所有元素。 注意: filter() 不会对空数组进行检测。 注意: filter() 不会改变原始数组。
阅读全文
摘要:{ title: '状态', dataIndex: 'status', render: (text, row) => { let arr = ['', '未开始', '进行中', '已结束', '已作废']; return <span>{arr[text]}</span>; }, },
阅读全文
摘要:react生命周期1.1.constructor() constructor()中完成了React数据的初始化,它接受两个参数 :props和context,当想在函数内部使用这两个参数时 ,需使用super()传入这两个参数。 注意:只要使用了constructor()就必须写super() ,否
阅读全文
摘要:{ title: '状态', dataIndex: 'status', render: (text, row) => { let arr = ['', '未开始', '进行中', '已结束', '已作废']; return <span>{arr[text]}</span>; }, },
阅读全文
摘要:<div style={{ textAlign: 'center' }}> <Button type="primary" style={{ marginRight: '10px' }}> 保存 </Button> <Button>取消</Button> <Button type="primary"
阅读全文
摘要:boothActivityCode: this.props.location.query.code || '',
阅读全文
摘要:this.setState({ pageIndex: 1, pageSize: 10, });
阅读全文
摘要:Uncaught Error: Reducer "index" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return
阅读全文
摘要:import React, { Component } from 'react'; class List extends Component { constructor(props) { super(props); } render() { return <div>1111</div>; } } e
阅读全文
摘要:The Apache Tomcat installation at this directory is version,tomcat版本号过高eclipse无法导入解决办法 找到tomcat安装位置进入lib目录 lib目录下有个catalina.jar 用解压缩软件打开 打开后 在catalina
阅读全文
摘要:1打开window中preferences 2找到server下runningtime 3add 4选择 5加入 6找到 7建立一个新jsp文件
阅读全文
摘要:1打开eclipse 找到help 2点开,查找 Install new software 二步、然后在Work with中点击Add,如下图所示,加入Name=="Kepler" repository;Location==http://download.eclipse.org/releases/k
阅读全文
摘要:JSP语法 脚本程序 脚本程序可以包含任意量量的Java语句句、变量量、⽅方法或表达式,只要它们在脚本语⾔言 中是有效的。 脚本程序的语法格式: <% 代码⽚片段 %> 或者,您也可以编写与其等价的XML语句句,就像下⾯面这样: <jsp:scriptlet> 代码片段 </jsp:scriptle
阅读全文
摘要:定义一个logind的jsp <%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8"%> <!DOCTYPE html> <html> <head> <meta charset="ISO
阅读全文
摘要:定义一个logind的jsp页面 <%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8"%> <!DOCTYPE html> <html> <head> <meta charset="I
阅读全文
摘要:<%@include...> 与<jsp:include....>指令的区别 include指令: 在翻译阶段(将JSP页面转换成servlet的阶段),include会读入指定的页面中的内容,并将这些内容和原来的页面融合在一起 <%@ include file=”header.html”%> 引入
阅读全文
摘要:定义一个date页面 <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <p> 今天的日期是: <%= (new java.util.Date()).toLocaleStrin
阅读全文
摘要:定义一个date的jsp <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <p> 今天的日期是: <%= (new java.util.Date()).toLocaleStr
阅读全文
摘要:这些都是基础知识,不过有必要做深入了解。先简单介绍一下。 二者的定义: 当你在浏览网站的时候,WEB 服务器会先送一小小资料放在你的计算机上,Cookie 会帮你在网站上所打的文字或是一些选择,都纪录下来。当下次你再光临同一个网站,WEB 服务器会先看看有没有它上次留下的 Cookie 资料,有的话
阅读全文
摘要:定义一个login.jsp页面 <%@ page language="java" import="java.util.*,java.net.*" contentType="text/html; charset=utf-8"%> <% String path = request.getContextP
阅读全文
摘要:定义一个Users类 package srever; public class Users { private String username; private String password; public String getUsername() { return username; } pub
阅读全文
摘要:定义一个users类 package srever; public class Users { private String username; private String password; public Users() { } public String getUsername() { ret
阅读全文
摘要:定义一个login的jsp <%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8"%> <!DOCTYPE html> <html> <head> <meta charset="ISO-
阅读全文
摘要:建立一个users类 package srever; public class Users { private String username; private String password; public Users() { } public String getUsername() { ret
阅读全文
摘要:建立一个users的java类 package srever; public class Users { private String username; private String password; public Users() { } public String getUsername()
阅读全文