Đang Thực Hiện

159402 quick javascript problem

User must be able to solve the problem right away. I think this should be real easy for someone understands javascript.

I pass an event to a function that uses [url removed, login to view] and then in that same function I call another function where it will need to use e.clientX. The problem is that [url removed, login to view] in the second function is returning 0. I have a feeling i'm not passing the event properly to the second function. Here is a simplified verison of what i have so far:

function f1(e)

{

if (!e) var e = [url removed, login to view];

alert([url removed, login to view]); //this works properly

f2(e);

}

function f2(e)

{

if (!e) var e = [url removed, login to view];

alert([url removed, login to view]); //returns 0 instead of mouse position

}

Kỹ năng: Bất kì công việc gì, Javascript

Xem thêm: easy problem, what is a javascript, solve problem, f2, f1, event javascript, javascript problem, quick function, pass window, solve javascript, javascript function call, call function javascript javascript, problem javascript, position window javascript, mouse window javascript, javascript window, javascript mouse position, mouse event, javascript easy, javascript pass, call javascript, mouse javascript, mouse function javascript, alert window, javascript mouse

Về Bên Thuê:
( 2 nhận xét )

Mã Dự Án: #1905591