this.FunName =fName ;
this.FunctionName =fName;
this.Empid=this.GetParaValue("EmpID");
this.EmpName =this.GetParaValue("username"); 这里面的this是什么意思?this关键字的详细用法给我通俗的讲一下!请高手给讲一下。msdn里的解释不要,看不懂!
this.FunctionName =fName;
this.Empid=this.GetParaValue("EmpID");
this.EmpName =this.GetParaValue("username"); 这里面的this是什么意思?this关键字的详细用法给我通俗的讲一下!请高手给讲一下。msdn里的解释不要,看不懂!
解决方案 »
- int?[] productModelIds = {19, 26, 118};, int?是什么意思啊
- 求高手帮忙!!!
- 如何实现这样的功能
- 急求:一份以个人名义与一家公司签署的一份软件开发合同
- 一不小心误删除了一组控件,如何恢复?在线等
- 如何在web页中动态显示鼠标所在位置对象的信息?
- 弹出两个日期控件的方法
- 大家好,又有個問題要請問大家,關於圖片大小控制的問題。
- 开发工具设置问题: Vs.net ******** 出手从来100分 **********
- 如何让一个Asp.net的页面输出一个xml的文档?
- 思归,请教:asp.net 2.0 里的TreeView 如何绑定数据库里的数据库,形成单位树
- Web的DataGrid如何选定一行
对于 JScript 的客户版本,如果在其他任何对象的上下文之外使用 this,则它指的是 window 对象。
this 关键字将引用类的当前实例。静态成员函数没有 this 指针。this 关键字可用于从构造函数、实例方法和实例访问器中访问成员。
msdn 的解释
本页中的所有元素(控件ID、属性、对象、方法、类……)都可以通过this.来获取。
this.FunName =fName ;this.FunName是什么意思???
--
msdn的解释都看不懂,那...我也无能为力了。
... class a
{
public string Empid;
public string EmpName;
....
this.Empid=this.GetParaValue("EmpID");
this.EmpName =this.GetParaValue("username");//等同于//a.Empid=a.GetParaValue("EmpID");
//a.EmpName =a.GetParaValue("username");
}不知说明白没有,呵呵
this.FunName =fName ;
它和
string FunName =fName ;区别是什么?
this.FunName是什么意思???
{
public static string stra;
public int ib; public void test()
{
this.ib=1;
this.stra="a";//出错,实例无法访问静态成员
}
}因此通俗的说this是类的实例而不是类
namespace csdn
{
public class csdn:
{
private string FunName ="";
public csdn()
{
string fName = "fdsafdsaf";
///FunName是全局变量,在这里用this.出来
this.FunName = fName; }
private void Bid()
{
string fName = "fdsafdsaf";
///这里FunName是局部变量不能用this.出来
string FunName = fName;}
}
}
private void Bid()
{
string fName = "fdsafdsaf";
///这里的FunName就相当于局部变量
string FunName = fName;}
this.FunName =fName ;
它和
string FunName =fName ;区别是什么?
this.FunName是什么意思???
中FunName在前面已经定义。string FunName =fName ;
是现在定义的this.FunName就是用前面已经定义的FunName来取值