mirror of
https://github.com/Leo501/CocosCreatorTutorial.git
synced 2026-05-07 14:17:49 +08:00
添加ListViewV2demo中js调用ts方式
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
41
RollingNumber/settings/builder.json
Normal file
41
RollingNumber/settings/builder.json
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user