CrazyJS,疯狂的JS

一个简单实现读取 ini 的类,VBNET

‘代码为VBNET ‘例子: ‘xx.ini文件内容如下: ‘[广东] ‘gz=广州 ‘hz=惠州 ‘[福建] ‘fz=福州 ‘xm=厦门 ‘代码: ‘dd = New iniCLass.zjIniClass(Application.StartupPath & “\xx.ini”) ‘Mmsgbox( dd.info.jSonO.item(“广东”).item(“gz”)) ‘————————————————— ‘类代码,指定了命名空间为iniClass Imports System.Text.RegularExpressions Public Class zjIniClass Private iniFileUrl As String Public info As JSON Private iniString As String Public Sub New(ByVal inifile As String) iniFileUrl = inifile ini() End Sub Public Sub ini() Dim reader As System [...]