Home > front end >  Please bosses and see what could be the cause for me
Please bosses and see what could be the cause for me

Time:09-27

Wrote a web page, in the encapsulation of js wrote a goToTank method with Android interaction,
Var result=window. JSBrigeInterface. GoToSelectTaoCan ();
Results the browser running found this line of code error
An error display: Uncaught TypeError: always read the property 'goToSelectTaoCan of undefined
Could you help me see what reason be?

CodePudding user response:

This error is that the window. JSBrigeInterface's value is undefined
Window no JSBrigeInterface this attribute
You see if js files loaded correctly, JSBrigeInterface any spelling errors,

CodePudding user response:

reference 1/f, the sky wave response:
this error is that the window. The JSBrigeInterface value is undefined
Window no JSBrigeInterface this attribute
You see if js files loaded correctly, JSBrigeInterface any spelling errors,

The method of encapsulation is a reference to write before, before write so write is feasible, I don't know why this not line,
Js file is also down from previous page kao
Is this a few, is not the same as previous page in addition to the method name other are the same

CodePudding user response:

Js files are loaded correctly?

CodePudding user response:

reference 3 floor sky waves reply:
js files are loaded correctly?

Yes, have successfully loaded

CodePudding user response:

Js in the window. The JSBrigeInterface for assignment?

CodePudding user response:

reference 5 floor sky waves reply:
in js for Windows. The JSBrigeInterface for assignment?

I haven't involve lead of four window. JSBrigeInterface, could it be related to Android over there? Saw is not related to the previous page

CodePudding user response:

This is called Android on the other side of the object and method, have nothing to do with the front end
  • Related