CNode

setAttribute("class", "current")

问答
MmmXiaoYao发布于11 年前最后回复11 年前5 回复3869 浏览0 收藏

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

查看回复

回复 (5)

L
leapon#2·11 年前

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

L
leapon#3·11 年前

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

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

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

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

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

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