本文介绍了使用javascript进行动态控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要动态声明标签控件,如下所示.
I need to dynamically declare label control as below .
交叉销售:是
请帮助
闪电战
推荐答案
根据我的理解,您想通过JavaScript动态地向页面添加标签控件.
Based on my understanding, you want to add a label control via JavaScript dynamically to your page.
我们可以使用jQuery实现这一目标.
We can use jQuery to achieve this.
这是我所做的:
我将脚本编辑器Web部件添加到我的页面,并将下面的代码插入该Web部件.
I add a script editor web part to my page and insert code below into that web part.
<script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.8.3.min.js"></script>
<script>
这篇关于使用javascript进行动态控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!