Mooner_guo 2015-04-02 04:18 采纳率: 0%
浏览 3022

angularjs中使用ui-view载入module,发现该module包含的js不执行

angularjs中使用ui-view载入module,发现该module包含的js不执行,
直接以html的形式显示在页面中,这是怎么回事?求解答

module模板部分代码

```


今天,您去哪儿了?

<!-- -->
            <!-- 动态发表编辑框 -->
            <!-- 加载编辑器的容器 -->
            <script id="container" name="content" type="text/plain"> </script>
            <!-- 实例化编辑器 -->
            <script type="text/javascript">
                //alert("加载ueditor");
                console.log("加载ueditor");
                var ue = UE.getEditor('container', {
                    initialFrameHeight : 200,
                    initialFrameWidth : 900,
                    autoHeightEnabled : false
                });
            </script>


            <span><a href="#">发表</a></span>
        </div>


  • 写回答

2条回答 默认 最新

  • lhl_lqc 2015-04-02 04:26
    关注

    贴出主要的代码看看。

    评论

报告相同问题?