本文介绍了使用jquery将特殊字符显示到div中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的价值如下23 * 34我想从该字符串中获取*符号如何使用jquery和html div获取并显示在div中。 该值不仅仅是23 * 34该值可以是任何长度示例2345 * 3455或77 * 7777或1 * 2来自此类型字符串我想获得*符号。
I have value like below "23*34" i want to get * symbol from that string how can i get and display in div using jquery and html div. The value not only 23*34 that value may be any length example "2345*3455" or "77*7777" or "1*2" from this type string i want to get * symbol.
推荐答案//Try the following code
<html> <head> <script src="ajax.googleapis/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <script>
(document).ready(function(){ (document).ready(function(){
(#click)。click(function) (){ var divContent = ("#click").click(function(){ var divContent =
更多推荐
使用jquery将特殊字符显示到div中
发布评论