uniapp px转rpx

//获取手机信息
let systemInfo = uni.getSystemInfoSync()


//a  你所知的px

a*(750 / systemInfo.windowWidth) +'rpx'

你可能感兴趣的:(uni-app,前端,javascript)