我想从android phonegap中获取选定的文本。我在htmlpage中有一些文字,当我选择一些文字时,我想将其取回并更改所选文字的颜色。但我无法选择文字。我的文本数据是在div中。请帮助我。这是我的代码。无法在android phonegap中选择文本
<body>
<div data-role="page">
<div data-role="content">
</div>
<div id="log">
</div>
</body>
<script>
$.ajax({
type:'GET',
url: 'http://10.0.2.2:7080/example/TranscriptVieww',
dataType:'text',
success: function(data){
$("#log").append(data);
},
error: function(){
alert("There was an error loading the data.");
}
});
</script>
编辑的清晰度和问题。支持 – Dom
完成编辑... – Dom