angularjs和结束标记 [英] angularjs and closing tags

查看:152
本文介绍了angularjs和结束标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想设置一个applet一些PARAMS和小程序不希望如果有对参数的失踪结束标记加载。
这是应该的样子:

I'm trying to set some params for an applet and the applet does not want to load if there are missing closing tags on the param's. this is how it should look:

<applet>
 <param name='abc' value='def' />
</applet>

,但如以下普拉克将显示从角的输出是:

but as the following plunk will show the output from angular is:

<applet>
 <param name='abc' value='def'>
</applet>

http://plnkr.co/edit/0x7F7AKCkZwEjQR5K4pO
(你必须看一看生成的code)

http://plnkr.co/edit/0x7F7AKCkZwEjQR5K4pO (you have to take a look at the generated code)

我不知道为什么关闭标签的问题,但我是装的罐子是一个第三方的jar,所以我不能告诉如果它与缺少标签的问题,但是当我删除角,只是难code中的PARAMS与关闭标签,那么我的小应用程序的负载。

I'm not sure why the closing tag matters, but the jar that I'm loading is a 3rd party jar so I can't tell if it has problems with the missing tag, but when I remove angular and just hardcode the params with the closing tag, then my applet loads.

推荐答案

尝试使用一个单独的结束标记的参数:

try to use a individual close tag for param:

<applet>
    <param name='abc' value='def'></param>
</applet>

这篇关于angularjs和结束标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆