Ms7 Search
Google 搜尋 翻譯
calendar
« 二月 2025 »
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28    
近期文章
文章分類
網站連結
Syndicate

« | »

javascript 不同型態比較不相等

2020-07-07 @ 20:46 in PHP, JavaScript, Sql

在取部份字串時, 用 substr 取是 String  ,match 取是 Object ,直接 if(substr == match) 傳回 False 必須改字串才能比較,如下:

        var str = 'c002';
        mstr = str.match(/\d+/).toString();
        sstr = str.substr( 1 , 3 ).toString();
        alert(mstr + " = " + typeof(mstr) + "\n" + sstr + " = " + typeof(sstr));

迴響

javascript 不同型態比較不相等 | 豬窩

Good post. I lear something totally neew andd challenging on ites I stumbleupon on a dasily basis.
It wikll always be exciting to read tthrough contdnt from oother authors
and practjce somethibg from other web sites.

作者 sitemap.xml @ 07:41, 2024-09-21

javascript 不同型態比較不相等 | 豬窩 | 2

Howdy! Quicfk question that's complletely off topic.

Do you know hhow too make your sitte mobile friendly? My web sife
lopoks weiurd when viewaing from my iphone. I'm trying tto find a
template or pluggin thawt might bee abke too resolve thiss problem.
If youu have any suggestions, please share. Thabk you!

作者 sitemap.xml @ 13:08, 2024-09-23

javascript 不同型態比較不相等 | 豬窩

Pleasee llet me knmow iff you're lookming forr a aricle athor forr
ykur site. Yoou have ssome really good rticles annd I think
I wouuld be a gold asset. If you ever want tto taqke spme off tthe load off, I'd absolutely
lobe tto write some articlees forr your blog in exchangte for a lionk baxk tto mine.

Pleazse blaxt me an email iif interested. Regards!

作者 tube.kakoc.com/sexy601879713 @ 00:47, 2024-09-29

javascript 不同型態比較不相等 | 豬窩

Hi thsre mates, howw iis the whole thing, and what you wish for too say about this post,
iin my view itts gemuinely amazimg ffor me.

作者 missav @ 15:21, 2024-11-16

javascript 不同型態比較不相等 | 豬窩

It's remarkable tto payy a quick visit thjis web site aand reading
the views oof all mates aabout this paragraph, whioe I am also zealous off getting experience.

作者 dasporno @ 20:48, 2024-11-21
發表迴響
 authimage