错误记录--ReferenceError Error #1056

本文探讨了在ActionScript中创建com.company.userManager.UserVO类的username属性时遇到的ReferenceError错误#1056,并提供了相应的解决方案。指出实体类中的属性名需与ActionScript类中的保持一致且需设置为public。
错误记录--ReferenceError Error #1056
2011年01月18日
  ReferenceError: Error #1056: 无法为 com.company.userManager.UserVO 创建属性 username。
  java的实体类entity中的属性名称,要与ActionScript类中的一样。
  ActionScript中的属性必须为public的。
<template> <view class="action-page"> <!-- 顶部标题栏 --> <view class="top-bar"> <text class="bar-title">扫码评价</text> </view> <!-- 被评人信息 --> <view class="info-section"> <view class="info-item"> <text class="info-label">被评人:</text> <text class="info-value">王晓惠</text> </view> <view class="info-item"> <text class="info-label">评价表:</text> <view class="eval-list"> <view class="eval-item">1、医生服务态度 20分;</view> <view class="eval-item">2、医生耐心程度 30分;</view> <view class="eval-item">3、医生专业水平 50分;</view> </view> </view> </view> <!-- 二维码区域 --> <view class="qr-section"> <text class="qr-tip">让患者【微信】扫描下方二维码</text> <image class="qr-code" src="/static/ma.png" mode="widthFix"></image> </view> <!-- 评价记录 --> <view class="record-section"> <text class="record-label">评价记录:</text> <view class="record-item">1、评分:86分 评价人:李明 2022-2-10 13:20</view> <view class="record-item">2、评分:93分 评价人:赵牛 2022-2-09 14:20</view> </view> </view> </template> <script> export default { data(){ return{ name:&#39;&#39;, src:&#39;&#39;,//外边的base流,接收里面出来的 } }, onLoad:function(){ //页面加载就会运行 //获取缓存,拿到登录这个人的姓名 var user = uni.getStorageSync(&#39;userInfo&#39;); console.log(&#39;-----&#39;,user); this.name = user.name;//获取被评人姓名 this.getCode(); }, methods: { //获取二维码 getCode(){ var that = this //网络请求(去后端的工具,寄快递的过程) uni.request({ url:&#39;http://wujing62/getCode.php&#39;, data:{}, methods:&#39;get&#39;, dataType:&#39;string&#39;, success:function(){ //寄成功 console.log(&#39;$base64流&#39;,res) that.src = res.data;// },fail:function(res){ //寄失败 console.log(&#39;地址找不到&#39;,res); } }) } } }; </script> <style> .action-page { background-color: #fff; min-height: 100vh; box-sizing: border-box; } /* 顶部标题栏 */ .top-bar { background-color: #1890ff; color: #fff; font-size: 36rpx; font-weight: bold; padding: 30rpx 0; text-align: center; } /* 信息区域 */ .info-section { padding: 30rpx; } .info-item { margin-bottom: 20rpx; } .info-label { font-weight: bold; margin-right: 10rpx; } .info-value { color: #333; } .eval-list { margin-top: 10rpx; } .eval-item { line-height: 1.8; color: #666; } /* 二维码区域 */ .qr-section { padding: 30rpx; display: flex; flex-direction: column; align-items: center; } .qr-tip { font-size: 32rpx; color: #ff6600; font-weight: bold; margin-bottom: 20rpx; } .qr-code { width: 60%; } /* 评价记录区域 */ .record-section { padding: 0 30rpx 30rpx 30rpx; } .record-label { font-weight: bold; display: block; margin-bottom: 10rpx; } .record-item { line-height: 1.8; color: #666; margin-bottom: 10rpx; } 报错 ReferenceError: res is not defined at success (scan.vue:68) at Object.success (VM4383 WASubContext.js:1) at Object.success (VM4383 WASubContext.js:1) at Function.I.forEach.v.<computed> (WAServiceMainContext.js?t=wechat&v=3.11.0:1) at :57973/appservice/<api request success callback function> at WAServiceMainContext.js?t=wechat&v=3.11.0:1 at u (WAServiceMainContext.js?t=wechat&v=3.11.0:1) at Function.<anonymous> (WAServiceMainContext.js?t=wechat&v=3.11.0:1) at :57973/appservice/<NetworkRequest3success callback function> at WAServiceMainContext.js?t=wechat&v=3.11.0:1(env: Windows,mp,1.06.2504030; lib: 3.11.0)
最新发布
11-12
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值