码迷,mamicode.com
首页 >  
搜索关键字:tostring    ( 5990个结果
SpringMVC 过滤器 以及注解的一些应用
继承自 OncePerRequestFilter接口。获取用户的IP: request.getLocalAddr().toString();获取用户Session request.getSession().getAttribute("adminUser")ModelAndView view=new ...
分类:编程语言   时间:2015-03-30 18:38:29    阅读次数:284
登陆成功后,返回登陆前的网址和删除服务器图片
登陆成功后,返回登陆前的网址登陆前网站的cs的Page_Load方法中加入:protected void Page_Load(object sender, EventArgs e) { Session.Add("url", Request.Url.ToString()); ...
分类:其他好文   时间:2015-03-30 12:47:13    阅读次数:110
C# 轻松读取、改变文件的创建、修改、访问时间 z
// 读取文件的创建、修改、访问时间FileInfo fi = new FileInfo("C://test.txt");Console.WriteLine(fi.CreationTime.ToString());Console.WriteLine(fi.LastWriteTime.ToString...
分类:Windows程序   时间:2015-03-29 23:20:08    阅读次数:205
dotnetnuke 头像调用 头像缩放
public static string GetProfileImage(int userId, int width, int height) { return "~/profilepic.ashx?userid=" + userId.ToString() + "&w=" + width.ToS.....
分类:Web程序   时间:2015-03-28 10:05:16    阅读次数:128
关于javaswing单选框多选框参数获取
jTextArea1.append(jComboBox1.getSelectedItem().toString()+"的"+jTextField1.getText()+"您好!\n"+"您提交的个人信息如下\n"+"性别"+a+"\n喜欢的明星"+c+d+e+f+g+h+"\n"里面核心内容如上关于...
分类:编程语言   时间:2015-03-28 10:01:32    阅读次数:347
1.spring环境的搭建
1.app.config 3.persondao类namespace FirstSpringNetApp{ public class PersonDao { public override string ToString() { return "我是PersonDao"; } ...
分类:编程语言   时间:2015-03-21 11:03:42    阅读次数:169
2.自己搭建的一个简易的ioc容器
1.persondao类namespace MyselfIoC{ public class PersonDao { public override string ToString() { return "我是PersonDao"; } }}2.xml 工厂文件3.工厂ioc 构造函数实例化一个ioc...
分类:其他好文   时间:2015-03-21 11:03:30    阅读次数:108
常用javascript类型判断
//判断是不是数组 console.log(Object.prototype.toString.apply([])==='[object Array]') //判断是不是函数 console.log(Object.prototype.toString.apply(function(){})==='[...
分类:编程语言   时间:2015-03-20 15:53:54    阅读次数:165
Java 接口能不能有具体的实现
publicinterfaceS{}publicinterfaceB{publicstaticfinalSs=newS(){publicStringtoString(){return"我在接口实现了";}publicvoiddoString(Strings){System.out.println("我在接口实现了");}};}publicclassTest{publicstaticvoidmain(String[]args){Strings=B.s.toString();Syste..
分类:编程语言   时间:2015-03-20 01:33:49    阅读次数:154
ASP.NET,Razor语句中@符号的意义
比较下面两段代码的区别: @if (item.ModifyTime.HasValue) { @item.ModifyTime.GetValueOrDefault().ToString("yyyy-MM...
分类:Web程序   时间:2015-03-19 19:58:54    阅读次数:272
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!