Using Like Clause in Azure Mobile Services JavaScript Client
问题 I am writing a JavaScript client for an Azure Mobile Service. I am trying to use the LIKE clause (or equivalent) in the JavaScript Where clause, when I am querying a table. Does any one know how to do this? [Essentially I want to see whether a string starts with a particular value or not] 回答1: You can use the indexOf function, which is supported in the function: var table = client.getTable('tableName'); var queryValue = document.getElementById('txtField').value; table.where(function