分享你我的心得.
共乘一片美好网络.

与function $(id){return document.getElementById(id)}冲突

function $(id){return document.getElementById(id)}

这句话已经变形简写了,还是和其他JQ脚本冲突

只要重新命名

function $$(id){return document.getElementById(id)}

那么demo=$$(demo);demo1=$$(demo1);demo2=$$(demo2)

这样定义其他就可以了!但尽量不使用$(id)这样的定义

赞(0)
未经允许不得转载:小叶白龙博客 » 与function $(id){return document.getElementById(id)}冲突
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址