Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17076

How to check if a resource exists in Javascript?

$
0
0

@Fran wrote:

Hi!

Is there anyway to check if a resource exists in Javascript? I thought I could use jsb.fileUtils.isFileExists but after looking at the source code I really doubt it would work:

/**
 * @function isFileExist
 * @param {String} arg0
 * @return {bool}
 */
isFileExist : function (str)
{
    return false;
},

Any ideas?

Many thanks in advance!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17076

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>