摘要:
If you want to do require() calls in the HTML page, then it is best to not use data-main. data-main is only intended for use when the page just has on 阅读全文
摘要:
一、数组的深浅拷贝 在使用JavaScript对数组进行操作的时候,我们经常需要将数组进行备份,事实证明如果只是简单的将它赋予其他变量,那么我们只要更改其中的任何一个,然后其他的也会跟着改变,这就导致了问题的发生。 var arr = ["One","Two","Three"]; var arrto 阅读全文