摘要:
var container = new MyContainer(); container.RegisterType<ILanguage, Chinese>(); //使用别名注册 container.RegisterType<ILanguage, Englisth>("english"); var 阅读全文
摘要:
using System.ComponentModel.DataAnnotations; //特性是个类,继承自Attribute//系统自带特性//自定义特性 class AccountViewModel{ [Required] [Display(Name ="邮箱")] [Define("这是第 阅读全文
摘要:
php中::是什么意思? PHP中的‘::’是一种内置的语法解析符号,中文名叫做“范围解析操作符”。:: 符号是用来帮助PHP中的语法结构“类”来实现对其成员的访问,通常我们只允许访问静态成员,具体代码如下:① 类正常访问静态成员class Heima{//静态属性public static $he 阅读全文
摘要:
可以使用Request对象的header方法获取当前请求的HTTP 请求头信息 $info = Request::instance()->header();echo $info['accept'];echo $info['accept-encoding'];echo $info['user-agen 阅读全文
摘要:
class SingleCase { public static SingleCase instance=null; public string name =""; public static SingleCase getInstance(string n) { if(instance==null) 阅读全文
摘要:
阅读全文
摘要:
package com.sz.model;import org.springframework.context.ApplicationContext;import org.springframework.context.support.ClassPathXmlApplicationContext;p 阅读全文
摘要:
<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 阅读全文
摘要:
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 阅读全文