跳到主要内容
CNode

setAttribute("class", "current")

问答
MmmXiaoYao发布于 11 年前最后回复 11 年前
538770

请问juery中setAttribute("class", "current")和$!{rootPath}index怎么理解?

查看回复

回复 (5)

L
leapon#511 年前
引用 mmXiaoYao@leapon 对,rootPath是自定义变量,想问一下index写在大括号{}外面代表什么意思呢~

@mmXiaoYao 贴一下上下文吧。估计用了某个template engine。要结合起来才能看明白。

M
mmXiaoYao#411 年前
引用 leapon那个{root Path}不像是jquery里的。像是模版里的变量替换

@leapon 对,rootPath是自定义变量,想问一下index写在大括号{}外面代表什么意思呢~

L
leapon#211 年前

setAttribute 是该html node的attribute。多看看文档

L
leapon#111 年前

那个{root Path}不像是jquery里的。像是模版里的变量替换

参与回复

登录后即可参与回复。登录