Can all JavaScript functionalities be开发者_StackOverflow theoretically replaced with Silverlight? If yes, I can save my time and just learn Silverlight.
I recommend that you learn JavaScript as well as Silverlight.
Silverlight is a product of Microsoft. Being proprietary, it may or may not be popular or even exist a few years down the road. JavaScript (ECMAScript) is an open standard and is supported natively by all browsers. Knowledge of JavaScript will be useful for any web site project.
Theoretically yes. Just remember that only about 60% of internet-enabled computers have it installed. And don't forget all the accessibility issues associated with using a plugin instead of using native browser functionality.
Only use it if you absolutely need a feature of Silverlight that HTML/JavaScript cannot provide, and even then, it would probably be better to use Flash because of its install base.
Theoretically, yes, Sliverlight could replace JavaScript, as could Flash.
But you have to remember that JavaScript is always faster than Silverlight (or Flash), and therefor better for most tasks.
精彩评论