例 3.1(AjaxPrerequ1.html) <html> <head> <script> /* 马克-to-win:这个例子和jquery没任何关系。就是自己如何从头做一个jquery。the following is a json format, which can have a function as a pair. */ var $={ name:'马克-to-win', getById:function(obj){ return document.getElementById(obj); }, set:function(){ /*下面的$可以换成this,结果是一样的*/ $.getById('show').innerHTML = "哈苏大苏打靠近哈快速地结合看 "+this.name; } } </script>
更多请见:https://blog.csdn.net/qq_44594371/article/details/103063000
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。