例 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 删除。
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有