开发者

How to make a double linked-list in javascript + html

开发者 https://www.devze.com 2022-12-08 03:15 出处:网络
I have a class called listaDoble, in a Javascript document. And I have another HTML document with a text field and 4 butto开发者_高级运维ns: Next, Back, New.

I have a class called listaDoble, in a Javascript document. And I have another HTML document with a text field and 4 butto开发者_高级运维ns: Next, Back, New. When I press the New button I put, onmouseclick="lista= newListaDoble();", but then I lose the reference to the object. Some help?


declare your javascript variable as

 var lista = null;

before you assign value to it. Not in onclick handler but in the body of the page.

0

精彩评论

暂无评论...
验证码 换一张
取 消