my.SDKVersion

Get the version of basic library (for reference only). Do not rely on this value for code logic.

Sample Code

copy
<!-- API-DEMO page/API/sdk-version/sdk-version.axml-->
<view class="page">
  <view class="page-description">Get version of basic library API</view>
  <view class="page-section">
    <view class="page-section-title">my.SDKVersion</view>
    <view class="page-section-demo">
      <button type="primary" onTap="getSDKVersion">Get version of basic library</button>
    </view>
  </view>
</view>
copy
// API-DEMO page/API/sdk-version/sdk-version.js
Page({
  getSDKVersion() {
    my.alert({
      content: my.SDKVersion,
    });
  }, 
});

Return Value

String, version of basic library