Sign in

The HTML event only executes one line and jumps out

ThinkTrans edited in Fri, 11 Nov 2022


var element = whichform.element [i] When it is executed in this line, it will jump out directly, and none of it is executed below

Reset fields (this form); jump out here (all not executed below), and then jump directly to other events when the page is loaded



The content returned by regularization is null, and the requested file is obtained directly from the action attribute of the form. It should be true, and regularization is OK. Why is null

2 Replies
commented on Fri, 11 Nov 2022

There is less s below

commented on Fri, 11 Nov 2022

Is it. Elements? When you traverse, it is whichform.elements.length There's an s missing in the back