发布网友 发布时间:2022-04-22 06:40
共1个回答
热心网友 时间:2023-06-26 14:33
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Ball</title>
<style type="text/css">
</style>
<script type="text/javascript" src="jquery-1.8.0.min.js"></script>
<script type="text/javascript">
$ (function ()
{
var text = $ ("div").text ();
text = text.replace (/(.*)你.*/, '$1');
alert (text);
})
</script>
</head>
<body>
<div>abcdefg我dfdf你sdfsdf</div>
</body>
</html>