2019年10月30日

摘要: 转载自:https://blog.csdn.net/tianyongheng/article/details/78989612 目前接触的unity 解析json 有几种:1.比较流行的listjson(数据对象必须和json一对一)2.目前unity自带 JsonUtility(不能解析复杂的js 阅读全文
posted @ 2019-10-30 09:13 A_free 阅读(596) 评论(0) 推荐(0)

2019年4月21日

摘要: 在main函数中调用: 阅读全文
posted @ 2019-04-21 13:09 A_free 阅读(75) 评论(0) 推荐(0)
摘要: var role = {}; function test_func(name,sex){ this.name=name; this.sex=sex; } // 显式传递this // 函数.call可以显式的传递一个实例,函数中的this就是指这个实例// 在这里this--->role test_func.call(role,"leon","男"); console.log(role);... 阅读全文
posted @ 2019-04-21 13:04 A_free 阅读(90) 评论(0) 推荐(0)
摘要: console.log("Hello World"); console.log(Math.PI); var str="leon"; // 字符串 console.log(str.length); // 获取字符串长度 var index = str.indexOf("o"); // 字符串中是否含有某字符,含有返回该字符串出现的index,没有则返回... 阅读全文
posted @ 2019-04-21 12:54 A_free 阅读(101) 评论(0) 推荐(0)

导航