使用jquery将特殊字符显示到div中

编程入门 行业动态 更新时间:2024-10-09 06:27:58
本文介绍了使用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中

本文发布于:2023-11-27 18:43:05,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1639159.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:特殊字符   jquery   div

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!