请教this.myTitle = this.title,myTitle和title的区别是什么啊,
jquery吧
全部回复
仅看楼主
level 1
sarahchen2082 楼主
请教this.myTitle = this.title,
myTitle和title的区别在什么啊,谢谢。
2013年07月04日 03点07分 1
level 5
this.myTitle 是定义了一个全局变量 this 是全局对象Global
this.title 中的this 是当前jquery 选择器对象 如果不出意外应该是个 a标签
总体的意思是 将 a标签的title 属性获得 并存放在全局变量中
2013年07月11日 06点07分 2
[真棒]
2014年10月04日 10点10分
[真棒]
2014年10月08日 08点10分
[大拇指]
2015年10月16日 09点10分
大谢,[大拇指]
2016年10月09日 06点10分
1