2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

WordPressではjQueryの$()が使えないことを初めて知った

Posted at

みんな知っていると思うけど、
私は今さら知った。恥ずかしい。

PC上では動作するのにスマホが反応しない…。
こんなこと初めてで数時間無駄にしてしまった。

##WordPressでは反応しない書き方

$(function(){
  // jQuery書く
});

##正解の書き方

jQuery(function(){
 // jQuery書く(この中は$で書いてオッケイ)
});

以上。初めての投稿は恥ずかしい体験から始まる。

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?