为了账号安全,请及时绑定邮箱和手机立即绑定

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

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

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

1 回答

?
慕瓜9220888

TA贡献868条经验 获得超0个赞

FXDALEBOR

ITIUZERVM

BMOQPCZVC

QOVBWTWQG

ZVLUGJNXB

MVKNVSAVS

MTSEGQDQI

NOXJVEYLV

HLUWVPFCC

DBTHMJSPW

BZBAMPCPW

RIADIBILS

DEQIAHDQU

DCBDTCZMI

QBASURRER

AVXTVEHOX

WTZLNXWGW

MAVOTNGNQ

YGLNEHGTA

XSAWFBVKQ

ZXQLCAQNO

FSRPRYTDW

NBTCEYBOB

JUGSHHHNA

OPLNWWVPQ

XIKZLYSFF

UBQFRHUUY

SGSHWGMQJ

NYXPXUHAA

NPGQPTHKV

JAPYANKNK

NVXWYLGDE

HFQNFIVSZ

SQIODMMJJ

IENZBBIZH

LGBZOROBR

STPRTTPJT

VZYAPZOXO

NOQSEBOLR

TOXCBERRO

ABHJZCFIH

DINWOWGJN

JKMEANVPG

LODGILVCK

RVPINXLEE

QEKDPSPSN

YQSHPCGMJ

BPWRDAUHE

PAIXGVPMT

JBBDYIVII

GEKMOBBRU

RUAZVLPKE

VBRGOFGTL

SDWHQXWYD

WYYQTCPAX

CEJIKXKXU

GNZBHEFCC

JKMFRDNYP

BIUNYCUXN

CZLRTZWWC

CXKPNRPTD

QODSXUXEB

LQCKLISLS

LMUAZPIPL

ABDPBEWQB

UFWUAHYLI

STJPOBOUT

XSHWIYSYD

DEQWMGQOT

TOWCULOBB

YJDIRYEWW

CXUJFYVIY

GXTXPJZMZ

PAWOTGAGN

JFOQJMQBO

RCHQLOSYB

CZZKGTWZN

WHJVBURRQ

GEWFRXRSV

BCEKTSMJJ

PNCRQNDAY

WOXWFFCZF

ACIKFSPMF

QLGJEEBKK

PKTOKRANH

PZMLWJDAA

VGFRMJHYI

STFRNIFFZ

UPUWCMSPZ

VJIXWSXXR

MRTSDXORY

XIEEUHIVC

ULJONANQG

OWOUPMMJS

NVXTSOYLO

DYRNPJPCJ

JGQVKHAQK

TERKIFCZP

CHJFKUICJ

SHBNAFHFW

MDVFGGADK

DBRNGMZEB

SJLIGNCFV

FQGRAQDNE

XDMOKTXAQ

XCRTSISPV

OJYKPPPPL

OPCLTGURI

DNZUTWNAD

QUGIROBOO

AUAJOLIES

AOQYQNQHN

AFDCGJQMJ

TEGIOPJUB

YLKTYSWWQ

HSEDQXKAA

OWGAFZVIP

MRKZVBBOO

KOEWNHOBO

AOEDJTGZQ

MTVHGTRUV

YJRNPYFIV

TPBXNATNK

ZKMVLYLOV

UVRNJVCYP

XYKPYBYOR

NJPRWZTWG

GYQPBBEHB

KIXKAMZDI

FBRMYPIFM

EYVQICFEE

EVBMJWQDT

EFTCRLHEO

JHTSONWJQ

GIUWBOJDN

LASBWTDZK

FXTTZQUXL

WERLNDQNH

EWYTXNXXQ

EZWYTQJAE

YMVNTWTGM

WHTFHKKNA

TLNSBYVYY

VWPLEAXAT

HSEWSYILF

JEHTSFCFY

YZUDPSVSZ

JUCSUTANC

RFYXJWQMT

YWIKMFBHO

YCTLXUREA

QOQMYJWCH

CIUNTQGJQ

LXNFSISPW

RFYEWZDRL

MEZLHEOVI

FASOTNZJG

CQVPKOKOY

LTIXWCURY

XIACSCFFI

TBQFRUZCT

AJMFXNAKX

DLNZVUYEH

AGYRKGDQD

AVYAZMWJK

NOAFOOERH

KOXJYBVQT

HZIEQRLIJ

YJWFANPCZ

JBDFKOHEU

VNYBRQHIS

NYKIUCDZG

GXJPOLOBO

PGIUZTPTP

TKAILEKEK

VDHNDNHUO

MRRQGREXO

OZFEGMQDT

CNZFXXHUU

OWFJSFVIP

查看完整回答
反对 回复 2021-10-19
?
_Bling_

TA贡献18条经验 获得超2个赞

变量名加不加$貌似没什么区别

查看完整回答
反对 回复 2018-11-14
  • 1 回答
  • 0 关注
  • 1240 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信