I have a text area in which I would variously like to have either: "Loading..." along with a little loading gif, or the actual text from the backend.
I can use data-bind=text:...
to trade "Loading..." for some other text, but what is the proper way to get the gif in there?
快速解决方案是在包含gif的元素上添加“可见”或“如果”绑定,以便仅在条件为true时显示。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.