上一页 1 2 3 4 5 6 7 8 ··· 30 下一页
摘要: var container = new MyContainer(); container.RegisterType<ILanguage, Chinese>(); //使用别名注册 container.RegisterType<ILanguage, Englisth>("english"); var 阅读全文
posted @ 2023-05-24 22:23 .net&new 阅读(10) 评论(0) 推荐(0) 编辑
摘要: using System.ComponentModel.DataAnnotations; //特性是个类,继承自Attribute//系统自带特性//自定义特性 class AccountViewModel{ [Required] [Display(Name ="邮箱")] [Define("这是第 阅读全文
posted @ 2023-05-18 22:29 .net&new 阅读(12) 评论(0) 推荐(0) 编辑
摘要: php中::是什么意思? PHP中的‘::’是一种内置的语法解析符号,中文名叫做“范围解析操作符”。:: 符号是用来帮助PHP中的语法结构“类”来实现对其成员的访问,通常我们只允许访问静态成员,具体代码如下:① 类正常访问静态成员class Heima{//静态属性public static $he 阅读全文
posted @ 2023-05-14 11:54 .net&new 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 可以使用Request对象的header方法获取当前请求的HTTP 请求头信息 $info = Request::instance()->header();echo $info['accept'];echo $info['accept-encoding'];echo $info['user-agen 阅读全文
posted @ 2023-05-14 11:18 .net&new 阅读(174) 评论(0) 推荐(0) 编辑
摘要: class SingleCase { public static SingleCase instance=null; public string name =""; public static SingleCase getInstance(string n) { if(instance==null) 阅读全文
posted @ 2023-05-08 08:44 .net&new 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2023-05-07 08:47 .net&new 阅读(11) 评论(0) 推荐(0) 编辑
摘要: package com.sz.model;import org.springframework.context.ApplicationContext;import org.springframework.context.support.ClassPathXmlApplicationContext;p 阅读全文
posted @ 2023-05-07 08:45 .net&new 阅读(13) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 阅读全文
posted @ 2023-05-07 08:44 .net&new 阅读(2) 评论(0) 推荐(0) 编辑
摘要: package com.sz.model;public class User { private String name; private int Age; public void setAge(int age) { this.Age=age; } public int getAge() { ret 阅读全文
posted @ 2023-05-07 08:43 .net&new 阅读(12) 评论(0) 推荐(0) 编辑
摘要: https://www.bilibili.com/video/BV1Rf4y1r7sc?p=8&vd_source=d87a0cdb006a04b60ce265a9ce85d6af 阅读全文
posted @ 2023-05-06 07:50 .net&new 阅读(41) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 30 下一页