On Wed, Apr 1, 2009 at 8:03 PM, RobG <rg...@iinet.net.au> wrote:
>
>
>
> On Apr 2, 1:51 am, brian <bally.z...@gmail.com> wrote:
>> On Wed, Apr 1, 2009 at 11:01 AM, Xu <bobxu1...@gmail.com> wrote:
>>
>> > Thanks. Can you elaborate it?
>> > You seem to suggest if my web page includes their actual JQuery file,
>> > there will be for sure problems.  Why is that? Thanks.
>>
>> Because you'll be redeclaring the methods. If you load a page like
>> this, you'll get an error:
>>
>> function foo()
>> {
>>   alert('foo');
>> }
>>
>> function foo()
>> {
>>   alert('foo again');
>> }
>
>
> Not necessarily.  The second declaration replaces the first, any call
> to foo will call the second function.  An error will only occur if the
> second function itself creates an error - if so, it will happen even
> if the first declaration is removed.
>

Oh, right--javascript!

Reply via email to