开发者

unobtrusive javascript pain points to beware of

开发者 https://www.devze.com 2022-12-20 18:43 出处:网络
I have recently started learning unobtrusive JavaScript. Using JQuery its really fun. However with this thinking of writing JavaScript cod开发者_StackOverflow社区e has come a real long way from tradi

I have recently started learning unobtrusive JavaScript. Using JQuery its really fun.

However with this thinking of writing JavaScript cod开发者_StackOverflow社区e has come a real long way from traditional ways. Also adding quick onclick="fun()" is helpful sometimes and as the application grows 100% unobtrusive code "sometimes" become difficult to write. Like attaching multiple events to one DOM element and thinking which one will get executed ?

So i would like to know points that should be watched while writing unobtrusive JavaScript code to keep life easy.

Thanks,

0

精彩评论

暂无评论...
验证码 换一张
取 消