LoginSignup
0

More than 5 years have passed since last update.

PhoneGapで"Uncaught TypeError: Cannot call method 'alert' of undefined"と怒られたとき

Last updated at Posted at 2014-06-19

原因

cordova.js, cordova_plugins.jsが読み込まれていない.

対処方

下記をindex.htmlに追記.

<script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript" src="cordova_plugins.js"></script>

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
0