URI validation in JavaScript
问题 What is a robust way (doesn't have to be regex, does it?) to validate that a URI works on Android by only using JavaScript? That is, the check is not done in Java on the Android SDK side; it's done in a webpage using JavaScript. EDIT: By "works on Android", I mean that Android can find an Activity that responds to an Intent using that URI. 回答1: Javascript is never as robust as backend but there are plenty off decent regex's around. This is covered in another post here Trying to Validate URL