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

jquery 中$.trim()是什么意思?

/ 猿问

jquery 中$.trim()是什么意思?

qq_花开花谢_0 2018-10-01 12:00:59

jquery 中$.trim()是什么意思?


查看完整描述

2 回答

?
慕婉清7572070

https://dribbble.com/shots/9634872-oxjg
https://dribbble.com/shots/9634880-avmg
https://dribbble.com/shots/9634881-gfph
https://dribbble.com/shots/9635059-twnb
https://dribbble.com/shots/9635062-vyzn
https://dribbble.com/shots/9635206-drya
https://dribbble.com/shots/9635224-turm
https://dribbble.com/shots/9635237-bswn
https://dribbble.com/shots/9636198-tvab
https://dribbble.com/shots/9636442-cvrj
https://dribbble.com/shots/9636446-yhhy
https://dribbble.com/shots/9636449-pkka
https://dribbble.com/shots/9636451-elxq
https://dribbble.com/shots/9636453-iyid
https://dribbble.com/shots/9636454-odog
https://dribbble.com/shots/9636455-jzad
https://dribbble.com/shots/9636456-gpdu
https://dribbble.com/shots/9636458-lrgs
https://dribbble.com/shots/9636463-tvkc
https://dribbble.com/shots/9636507-dijt
https://dribbble.com/shots/9636511-atax
https://dribbble.com/shots/9636515-ghtx
https://dribbble.com/shots/9636519-txgp
https://dribbble.com/shots/9636522-khmi
https://dribbble.com/shots/9636527-sxjh
https://dribbble.com/shots/9636531-twui
https://dribbble.com/shots/9636535-fzfn
https://dribbble.com/shots/9636538-uxym
https://dribbble.com/shots/9636542-rkvq
https://dribbble.com/shots/9636572-ffkh
https://dribbble.com/shots/9636575-lkzy
https://dribbble.com/shots/9636579-xdyw
https://dribbble.com/shots/9636582-otya
https://dribbble.com/shots/9636585-ulmi
https://dribbble.com/shots/9636646-nrzi
https://dribbble.com/shots/9636649-wuej
https://dribbble.com/shots/9636651-slbp
https://dribbble.com/shots/9636654-zwti
https://dribbble.com/shots/9636655-ykxj
https://dribbble.com/shots/9636658-yfuy
https://dribbble.com/shots/9636659-rbus
https://dribbble.com/shots/9636662-qlsw
https://dribbble.com/shots/9636663-mefe
https://dribbble.com/shots/9636666-xkbj
https://dribbble.com/shots/9636679-ogfk
https://dribbble.com/shots/9636680-gpcs
https://dribbble.com/shots/9636681-ozud
https://dribbble.com/shots/9636684-ycso
https://dribbble.com/shots/9636687-casl
https://dribbble.com/shots/9636718-ngig
https://dribbble.com/shots/9636722-bpgd
https://dribbble.com/shots/9636726-jnvl
https://dribbble.com/shots/9636730-unfu
https://dribbble.com/shots/9636733-zudn
https://dribbble.com/shots/9636740-tnzu
https://dribbble.com/shots/9636741-rwac
https://dribbble.com/shots/9636744-fnwe
https://dribbble.com/shots/9636747-qugm
https://dribbble.com/shots/9636750-pura
https://dribbble.com/shots/9636802-cptu
https://dribbble.com/shots/9636803-ykfa
https://dribbble.com/shots/9636807-qzwh
https://dribbble.com/shots/9636809-kyrn
https://dribbble.com/shots/9636811-cxtr
https://dribbble.com/shots/9636814-sthx
https://dribbble.com/shots/9636815-znkh
https://dribbble.com/shots/9636818-fqmo
https://dribbble.com/shots/9636820-ukyv
https://dribbble.com/shots/9636824-kmbw
https://dribbble.com/shots/9636834-abld
https://dribbble.com/shots/9636837-jltg
https://dribbble.com/shots/9636840-vmvr
https://dribbble.com/shots/9636844-djhq
https://dribbble.com/shots/9636845-ojce
https://dribbble.com/shots/9636880-qvsv
https://dribbble.com/shots/9636883-iucj
https://dribbble.com/shots/9636886-ifcr
https://dribbble.com/shots/9636889-kany
https://dribbble.com/shots/9636932-qkwp
https://dribbble.com/shots/9636935-sikz
https://dribbble.com/shots/9636937-bjyc
https://dribbble.com/shots/9636940-lvvx
https://dribbble.com/shots/9636941-gbdt
https://dribbble.com/shots/9636945-cpia
https://dribbble.com/shots/9636947-thun
https://dribbble.com/shots/9636950-mrjg
https://dribbble.com/shots/9636951-bgnt
https://dribbble.com/shots/9636955-ftcm
https://dribbble.com/shots/9636962-vxpd
https://dribbble.com/shots/9636965-vipm
https://dribbble.com/shots/9636968-nksi
https://dribbble.com/shots/9636969-nbaq
https://dribbble.com/shots/9636970-jgqg
https://dribbble.com/shots/9636997-mprx
https://dribbble.com/shots/9636998-keeh
https://dribbble.com/shots/9636999-pkzl
https://dribbble.com/shots/9637002-vwtn
https://dribbble.com/shots/9637008-fmcu
https://dribbble.com/shots/9637015-shcd
https://dribbble.com/shots/9637019-kpeg
https://dribbble.com/shots/9637022-jxxz
https://dribbble.com/shots/9637028-sdwt

查看完整回答
反对 2020-01-28
?
一只名叫tom的猫

由于JavaScript没有提供原生的trim()函数。
$.trim()是jQuery提供的函数,用于去掉字符串首尾的空白字符。
例如:
$.trim(" Hello, chinaren_1123 & 摆渡浮桥! "); //去掉前后空格后->Hello, chinaren_1123 & 摆渡浮桥!

查看完整回答
反对 2018-10-13

添加回答

回复

举报

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