第一个页面输入账号密码点登陆后一直显示name ‘then’ is not defined,想问问错在哪里了,该怎么修改。
代码中的then被定义在了class next里,不能直接使用 then()`调用
then
class next
then是next类的方法,要通过next类调用next.then()
next.then()
或者把class next去掉,def then()放到类的外面
then 是类next 的方法,不能直接调用,你可以把def then移到定格