gpt4 book ai didi

javascript - 检查 Backbone.history 是否已经启动的方法?

转载 作者:可可西里 更新时间:2023-11-01 02:14:14 26 4
gpt4 key购买 nike

有没有办法检查 Backbone.history 是否已经启动。

我正在使用使用 Backbone 和路由器编写的 View 即服务。当我渲染 View 时出现错误 Backbone.history has already been started

有没有办法避免这个错误?

由于此错误,未调用外部 View 中附加的路由器。

最佳答案

Backbone.History.started 是一个 bool 变量,指示 History 是否已启动。确保 H 是大写的。

关于javascript - 检查 Backbone.history 是否已经启动的方法?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18019603/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com