3

我正在使用 aria 模板,我正在尝试使用调试模式,但它似乎不起作用,因为我在控制台上没有日志。这是主要的 index.html。

<script type="text/javascript" src="/aria/bootstrap.js"></script>
<link type="text/css" href="./view/style.css" rel="stylesheet"></link>
</head>
<body>

<div id="output"></div>

<script type="text/javascript">
        Aria.debug = true;

        Aria.loadTemplate({
            div : "output",
            classpath : "guides.todo_mio.view.Todo",
            moduleCtrl : {
                classpath : "guides.todo_mio.TodoCtrl"
            }
        });
    </script>

</body>
</html>

任何提示?

谢谢。

4

1 回答 1

2

您需要debug在加载引导程序或 Aria 模板的生产版本之前启用模式,以便自动将每个类的日志级别设置为LEVEL_DEBUG.

<script>Aria = {debug : true}</script>
<script type="text/javascript" src="/aria/bootstrap.js"></script>

另一种方法是在加载框架后重新设置日志级别

aria.core.Log.setLoggingLevel("*", aria.core.Log.LEVEL_DEBUG);

更多信息可在ariatemplates.com上获得

于 2012-10-31T13:37:30.450 回答