在浏览器端,耗时很长的操作都应该异步执行,避免浏览器失去响应,最好的例子就是 Ajax 操作。
在瀏覽器端,耗時很長的操作都應該異步執行,避免瀏覽器失去響應,最好的例子就是 Ajax 操作。
On the client side, very time-consuming operations should run asynchronously so as to avoid freezing the browser. The best example is the operation of Ajax.
任何境遇都是宇宙给你的机会,假如你懂得利用、抓紧它。它将是你一生的财富。假如你遗漏、放弃或者没有做出积极的响应,宇宙会让这次机会在下一个时间、地点,和其他人重新来过。但在其中,你失去的是最宝贵的时间!知错就改,把握当下;在合适的尺度下,能跳就跳吧,能唱就唱吧,能疯就疯吧,能闹就闹吧。
任何境遇都是宇宙給你的機會,假如你懂得利用、抓緊它。它將是你一生的財富。假如你遺漏、放棄或者沒有做出積極的響應,宇宙會讓這次機會在下一個時間、地點,和其他人重新來過。但在其中,你失去的是最寶貴的時間!知錯就改,把握當下;在合適的尺度下,能跳就跳吧,能唱就唱吧,能瘋就瘋吧,能鬧就鬧吧。
Every situation is an opportunity given to you by the universe. If you know how to make the most out of that situation, do it. It will be a wealth that lasts you a lifetime. If you missed out, gave up, or didn't even attempt to take advantage of the opportunity, the universe will set this chance aside for the next person, in a different time and place. But what's most important is that you lost precious time. Understand what you did wrong, and control the present. Then with proper restraint, if you can dance, dance. If you can sing, sing. If you can be wild, be wild. If you can be lively, be lively.