87,910
社区成员
发帖
与我相关
我的任务
分享
var tipe ="<div style=\"height: auto; margin-top: 15px; padding-top: 65px; padding-bottom: 80px;\">"
+"<img src=\"./images/loading.gif\">"
+"<a href=\"http://test.com/feedback.html\"><button class=\"pull-left btn-success btn subbtn\" style=\"font-size: 16px;\">"
+"test1</button></a>"
+"<a href=\"http://test.com/feedback.html\"><button class=\"pull-left btn-warning btn subbtn\" id=\"shile\" style=\"font-size: 16px;\">"
+"test2</button></a></div><br><br><br>";
$("#textcontent").append(tipe);
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="../js/jquery-3.1.1.min.js"></script>
</head>
<body>
<input type="button" name=""button id="button_" value="click"/>
<div id="text_content">
</div>
<script type="text/javascript">
$(function() {
$('#button_').on('click', function() {
var tipe = "<div style=\"height: auto; margin-top: 15px; padding-top: 65px; padding-bottom: 80px;\">"
+ "<img src=\"../images/1.jpg\">"
+ "<a href=\"http://test.com/feedback.html\"><button class=\"pull-left btn-success btn subbtn\" style=\"font-size: 16px;\">"
+ "test1</button></a>"
+ "<a href=\"http://test.com/feedback.html\"><button class=\"pull-left btn-warning btn subbtn\" id=\"shile\" style=\"font-size: 16px;\">"
+ "test2</button></a></div><br><br><br>";
$("#text_content").append(tipe);
});
});
</script>
</body>
</html>