Tag: 等效

JavaScript中的VBA相当于用于Google表格的Google Apps脚本

我正在将Excel VBA代码转换为JavaScript,以便在Google表格的Google Apps脚本中使用。 不幸的是,我已经足够新的JavaScript,在JavaScript中提供正确的语法就像在飞镖盲人投掷飞镖。 我不想花费数小时来猜测工作,而是想检查是否有人可以帮我转换它。 我大多坚持要拿出一个相当于… 如果(Asc()…结束如果 …function的一部分。 Public Function cleanPhoneNumber(thisNumber As String) As String ' this function aspires to clean any phone number format ' to standard format (+9999) 999-999-9999 or 999-999-9999 ' works with almost all phone number formats stored in text Dim retNumber As String For i = 1 To Len(thisNumber) If […]