@H_403_0@在微信小程序里,如何获得用户输入的内容??
@H_4030@
js:
document.getElementById("Content").value
@H4030@
jq:
$("#Content").val()
@H403_0@在微信小程序中并不能这样写。
@H_403_0@可以通过组件的属性 bindchange 将用户输入的储存存起来
@H_403_0@
test.wxml
<div class="jb51code">
<pre class="brush:xhtml;">