<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<ul class="control-list">
<li class="controls" id="export-file" data-toggle="tooltip" title="Export ">Click Here<i class="fas fa-download"></i></li>
</ul>
<textarea id="codeToSave" disabled class="scrollStyle-3"></textarea>
使用命令“ print”解决了从Realm Results中获取数据的问题(它向我显示了我想要的所有数据),但是当我想在标签上显示它(例如)时,它什么也没显示。哪里可能有问题。感谢您的帮助。谢谢。 我的班级是这样的-
var accountsManager: Results<currencyAccounts>?
override func viewDidLoad() {
super.viewDidLoad()
let sortedAccountsFirst = realm?.objects(currencyAccounts.self).filter("currencyCode = %@", firstButton.titleLabel?.text!)
let newAccountBalanceFirst = sortedAccountsFirst?.first
print(newAccountBalanceFirst!)
balanceOfFirst.text = newAccountBalanceFirst?.currencyBalance
}