problem description
I don"t know how to render the data in the data table to the page
the environmental background of the problems and what methods you have tried
related codes
/ / Please paste the code text below (do not replace the code with pictures)
</button>
</form>
</div>
</div>
</section>
{{/block}}
{{block "script"}}
<script>
console.log("333333333333333")
$.ajax({
url: "/topic/show",
type: "checkout",
data: {email: "{{ user.email }}"},
success: function (data) {
console.log(data)
if(data.result==1){
console.log(data.content[0].content)
//var text = data.content[0].content
// var converter = new showdown.Converter()
//html = converter.makeHtml(text);
//console.log(html)
$("-sharpart").html(data.content[0].content)
// console.log(data.content)
}
}
})
</script>
{{/block}}
what result do you expect? What is the error message actually seen?
I hope I can render it like the dead data on this page. My jq may not be very good. I hope you can help me. It"s urgent. Thank you
.