English 中文(简体)
谅解j Query [封闭]
原标题:Understanding jQuery [closed]

I am having a problem and not really sure what is going on. I have been copy pasting some code from various sources in attempt to get something cool to work:

<script type="text/javascript">
   var $j = jQuery.noConflict();
</script>

<script type="text/javascript">
    $j(function() {
    bootstrapActive = false;

    ...a lot more code...
</script>

... more code

<script type="text/javascript"> 
    $j(function($) {
        $("#tabs").tabs();
    });
</script>

该表仅作为<代码>j(功能)。 当我增加第一个<代码>j功能时,表格不再有效。

这是否属于“贱民”财产? 谁能帮助我? 我不相信应该问什么问题。 任何建议?

问题回答

我一直在复制来自不同来源的一些法典,试图使一些冷却工作。

OLY?

答案是逐字逐行,理解你所复制和复制的法典,而不是把它放在无情之中。

消除一切,开始新鲜,并在小部分法典中增加。 一旦你们理解并努力,就着手增加更多的特征和代码。

<代码>jQuery为 Java本。 如同大多数共同提交文件框架一样,它以<代码>jQuery为标题。 因此,允许你做像<条码>(编号)那样的 st,而不必使用<条码>。 Query(编号:。

但是,j Query还设计能够与其他联合材料框架一起使用,因此它具有“不冲突”模式,基本上将<>$恢复至另一个框架(例如表格)。 你们通过做像:

var someVar - jQuery.noConflict();
...
someVar( #something )

在您的代码someVar上,$j。 所有这一切都是如此。

由于你对Qu子来说显然很新,请need花一定时间在。 令状是一纸空文,但你不学习任何东西,事实上,你在灾难后深重。





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签