我将开始在 Angular 6+ 中使用 RXJS 和套接字 io,但在此之前我想知道这两者是否相同或不同。有人可以帮助我在 Angular 中使用它们吗?
<select class="form-control" id="country" name="country">
<option data-othervalue=hellow world value="some value">three</option>
</select>
<script>
$('#country').change(function () {
var otherValue=$(this).find('option:selected').attr('data othervalue');
$('#tempselect').val(otherValue);
});
</script>
//Getting values to this textbox
<input type="text" id="tempselect">
Run Code Online (Sandbox Code Playgroud)
使用此脚本获取值时无法获取"世界",只能获得"hello".那么如何在具有空间的内容的文本框中显示hellow world本身.