1. JavaBean (有get/set属性,和默认构造器等规范的java类) import java.util.Date; public class Student { // 这是 字段 private String name; private int age; private Date bir ...
分类:
编程语言 时间:
2020-07-04 13:30:07
阅读次数:
56
(array) class Pre1 { private $name = 'aaa' ; private $age = 100; } class Pre2 extends Pre1 { private $name= 'bbb' ; public $age= 111; } var_dump ((arr ...
分类:
编程语言 时间:
2020-07-04 11:58:46
阅读次数:
71
局部内部类 示例代码 //外部类 public class Outer { private String name = "qiudajiang"; private int age = 10; //外部类方法 public void showOuter(){ //局部变量 String address ...
分类:
其他好文 时间:
2020-07-04 11:54:49
阅读次数:
66
先上需求,如图:主页是个子表,抽屉页是个父表, 主页中已有的数据,要在抽屉页中已勾选的形式展示 惯例先看文档,然后百度 1 { 2 name : '李云曦', 3 age : '18', 4 _checked : true //true表示选中 5 ) 琢磨半天没想出来前端怎么动态的设置已选,于是改 ...
分类:
其他好文 时间:
2020-07-04 11:54:14
阅读次数:
217
表结构如下 create table test ( id int, xm varchar2(5), age varchar2(3) ) 内有数据格式 id xm age 1 张三 14 2 李四 20 查询语句 select * from test;#*号为返回全部字段 select id,xm f ...
分类:
数据库 时间:
2020-07-04 01:32:14
阅读次数:
83
查询数据 # 查询所有数据 SELECT * FROM students # 只查询某几个列(并且附加条件) SELECT NAME,age FROM students WHERE age>20 在MySQL中null值需要使用IS NULL 和 IS NOT NULL SELECT * FROM ...
分类:
数据库 时间:
2020-07-03 21:45:02
阅读次数:
97
type InputStructure struct { Content string `form:"content" binding:"required,len=2"` Age int `form:"age" binding:"max=10,min=1"` Pass string `form:"p ...
分类:
其他好文 时间:
2020-07-03 19:33:43
阅读次数:
61
<script> // 要整理的数据 var array = [ {1: 'name', 2: 'age', 3:'sex', 4:'address'}, {1: 'tom', 2: '12', 3:'sex', 4:'englich'}, {1: 'mark', 2: '13', 3:'sex', ...
分类:
Web程序 时间:
2020-07-02 20:08:02
阅读次数:
260
魔法方法 1.__init__类在实例化的时候会触发它的执行 2. __str__打印对象的时候会触发 class A: def __init__(self, name, age): self.name = name self.age = age def __str__(self): return ...
分类:
其他好文 时间:
2020-07-01 20:27:32
阅读次数:
62
类的三大特性之继承 class Animals: a_type = "哺乳动物" def __init__(self,name,age,sex): self.name = name self.age = age self.sex = sex def eat(self): print("%s is e ...
分类:
其他好文 时间:
2020-07-01 17:26:04
阅读次数:
95