猿问

jquery的变量名加$与不加$的区别?

我用jq一般申明变量也没加$,今天写了些东西,要对引入的文件中的字符串进行多次的处理截取,变量申明了5个,console.log出来结果超过10s,突然试了下给变量名加$,console.log出来结果1s左右。网上一搜,全是说没什么区别,还有说是什么习惯问题?

守序者
浏览 1241回答 1
1回答

慕瓜9220888

FXDALEBORITIUZERVMBMOQPCZVCQOVBWTWQGZVLUGJNXBMVKNVSAVSMTSEGQDQINOXJVEYLVHLUWVPFCCDBTHMJSPWBZBAMPCPWRIADIBILSDEQIAHDQUDCBDTCZMIQBASURRERAVXTVEHOXWTZLNXWGWMAVOTNGNQYGLNEHGTAXSAWFBVKQZXQLCAQNOFSRPRYTDWNBTCEYBOBJUGSHHHNAOPLNWWVPQXIKZLYSFFUBQFRHUUYSGSHWGMQJNYXPXUHAANPGQPTHKVJAPYANKNKNVXWYLGDEHFQNFIVSZSQIODMMJJIENZBBIZHLGBZOROBRSTPRTTPJTVZYAPZOXONOQSEBOLRTOXCBERROABHJZCFIHDINWOWGJNJKMEANVPGLODGILVCKRVPINXLEEQEKDPSPSNYQSHPCGMJBPWRDAUHEPAIXGVPMTJBBDYIVIIGEKMOBBRURUAZVLPKEVBRGOFGTLSDWHQXWYDWYYQTCPAXCEJIKXKXUGNZBHEFCCJKMFRDNYPBIUNYCUXNCZLRTZWWCCXKPNRPTDQODSXUXEBLQCKLISLSLMUAZPIPLABDPBEWQBUFWUAHYLISTJPOBOUTXSHWIYSYDDEQWMGQOTTOWCULOBBYJDIRYEWWCXUJFYVIYGXTXPJZMZPAWOTGAGNJFOQJMQBORCHQLOSYBCZZKGTWZNWHJVBURRQGEWFRXRSVBCEKTSMJJPNCRQNDAYWOXWFFCZFACIKFSPMFQLGJEEBKKPKTOKRANHPZMLWJDAAVGFRMJHYISTFRNIFFZUPUWCMSPZVJIXWSXXRMRTSDXORYXIEEUHIVCULJONANQGOWOUPMMJSNVXTSOYLODYRNPJPCJJGQVKHAQKTERKIFCZPCHJFKUICJSHBNAFHFWMDVFGGADKDBRNGMZEBSJLIGNCFVFQGRAQDNEXDMOKTXAQXCRTSISPVOJYKPPPPLOPCLTGURIDNZUTWNADQUGIROBOOAUAJOLIESAOQYQNQHNAFDCGJQMJTEGIOPJUBYLKTYSWWQHSEDQXKAAOWGAFZVIPMRKZVBBOOKOEWNHOBOAOEDJTGZQMTVHGTRUVYJRNPYFIVTPBXNATNKZKMVLYLOVUVRNJVCYPXYKPYBYORNJPRWZTWGGYQPBBEHBKIXKAMZDIFBRMYPIFMEYVQICFEEEVBMJWQDTEFTCRLHEOJHTSONWJQGIUWBOJDNLASBWTDZKFXTTZQUXLWERLNDQNHEWYTXNXXQEZWYTQJAEYMVNTWTGMWHTFHKKNATLNSBYVYYVWPLEAXATHSEWSYILFJEHTSFCFYYZUDPSVSZJUCSUTANCRFYXJWQMTYWIKMFBHOYCTLXUREAQOQMYJWCHCIUNTQGJQLXNFSISPWRFYEWZDRLMEZLHEOVIFASOTNZJGCQVPKOKOYLTIXWCURYXIACSCFFITBQFRUZCTAJMFXNAKXDLNZVUYEHAGYRKGDQDAVYAZMWJKNOAFOOERHKOXJYBVQTHZIEQRLIJYJWFANPCZJBDFKOHEUVNYBRQHISNYKIUCDZGGXJPOLOBOPGIUZTPTPTKAILEKEKVDHNDNHUOMRRQGREXOOZFEGMQDTCNZFXXHUUOWFJSFVIP

_Bling_

变量名加不加$貌似没什么区别
随时随地看视频慕课网APP

相关分类

JQuery
我要回答