添加ListViewV2demo中js调用ts方式

This commit is contained in:
leo501
2020-06-13 18:29:34 +08:00
parent 5d013770cd
commit 498c549bb0
2 changed files with 54 additions and 0 deletions

View File

@@ -1,5 +1,18 @@
# ListView
### ListView, 循环滚动列表固定尺寸item, 屏幕可见范围外item会回收等待下次复用。支持横向竖向多行多列。支持追加删除数据。支持上右下左padding, 支持设置item锚点。
### 有js/ts版本
关于js与ts之间的互相调用
ts调用js中的b()方法 aa是脚本名称 panels是节点
import aa from './aa'
let send2:aa = this.panels.getComponent('aa');
send2.b();
js调用ts中的b()方法
var aa= require("aa");
aa.b();
### 参数
* https://github.com/caochao/cocos_creator_proj_base

View File

@@ -0,0 +1,41 @@
{
"appKey": "",
"appSecret": "",
"encryptJs": true,
"excludeScenes": [],
"fb-instant-games": {},
"includeAnySDK": false,
"includeSDKBox": false,
"inlineSpriteFrames": true,
"inlineSpriteFrames_native": true,
"jailbreakPlatform": false,
"md5Cache": false,
"mergeStartScene": false,
"oauthLoginServer": "",
"optimizeHotUpdate": false,
"orientation": {
"landscapeLeft": true,
"landscapeRight": true,
"portrait": false,
"upsideDown": false
},
"packageName": "org.cocos2d.RollingNumber",
"privateKey": "",
"qqplay": {
"REMOTE_SERVER_ROOT": "",
"orientation": "portrait"
},
"renderMode": "0",
"startScene": "daf82a65-d3df-4c93-9d56-0aae07223339",
"title": "RollingNumber",
"webOrientation": "auto",
"wechatgame": {
"REMOTE_SERVER_ROOT": "",
"appid": "wx6ac3f5090a6b99c5",
"isSubdomain": false,
"orientation": "portrait",
"subContext": ""
},
"xxteaKey": "59d5b8ec-1a80-49",
"zipCompressJs": true
}