---
title: "jquery解决$冲突的方法"
author: "wineer200"
date: "2012-05-30T18:33:26Z"
tags: []
categories: ["Web前端"]
slug: "jquery"
draft: false
lastmod: "2012-05-30T18:33:26Z"
id: 1545166
url: "https://wineer200.iteye.com/blog/1545166"
---

例如将  
$(function(){  
$("dl.tbox dt span.label a\[\_for]").mouseover(function(){  
$(this).parents("span.label").children("a\[\_for]").removeClass("thisclass").parents("dl.tbox").children("dd").hide();  
$(this).addClass("thisclass").blur();  
$("#"+$(this).attr("\_for")).show();  
});  
$("a\[\_for=uc\_member]").mouseover();  
});

改 为：

var f955 = jQuery.noConflict();  
f955(function(){  
f955("dl.tbox dt span.label a\[\_for]").mouseover(function(){  
f955(this).parents("span.label").children("a\[\_for]").removeClass("thisclass").parents("dl.tbox").children("dd").hide();  
f955(this).addClass("thisclass").blur();  
f955("#"+f955(this).attr("\_for")).show();  
});  
f955("a\[\_for=uc\_member]").mouseover();  
});