Loading Assets from AssetBundles
    
            
摘要:【Loading Assets from AssetBundles】 1、LoadAsset 2、LoadAssetAsync 3、LoadAllAssets 4、LoadAllAssetsAsync
        
阅读全文
摘要:【加载 AssetBundle 的四种方法】 1、AssetBundle.LoadFromMemoryAsync(byte[] binary, uint crc = 0); 返回AssetBundleCreateRequest.Use assetBundle property to get an A
        
阅读全文
摘要:【AssetBundle 策略】 1、Logical Entity Grouping。按逻辑功能分。 Examples Bundling all the textures and layout data for a User-Interface screen Bundling all the mod
        
阅读全文
摘要:【Rx操作符】 1、Observable.from()方法,它接收一个集合作为输入,然后每次输出一个元素给subscriber: 2、Observable.flatMap()接收一个Observable的输出作为输入,同时输出另外一个Observable。直接看代码: 3、getTitle()返回n
        
阅读全文
摘要:【生成Release apk】 1、使用Java SDK中的keytool生成keystore。 Java SDK一般位于:C:\Program Files\Java\jdkx.x.x_x\bin. Note: Remember to keep your keystore file private 
        
阅读全文
摘要:【await】 The await operator is used to wait for a Promise. It can only be used inside an async function. Returns the resolved value of the promise, or 
        
阅读全文
摘要:【Using Fetch】 This kind of functionality was previously achieved using XMLHttpRequest. Fetch provides a better alternative that can be easily used. 需要
        
阅读全文
摘要:【Building Projects with Native Code】 1、安装Node(v4.0以上)、Python2、JDK(v8.0以上)。 添加 JAVA_HOME环境变量,指向 JDK 的安装目录。 2、安装 react-native-cli npm install -g react-n
        
阅读全文
摘要:【React Native 初步】 1、Create React Native App is the easiest way to start building a new React Native application. It allows you to start a project with
        
阅读全文
摘要:【Data URL】 Data URLs are composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64token if non-textual, an
        
阅读全文
摘要:【target=_blank攻击】 在<a>标签中加入 rel="noopener noreferrer" 来避免。 参考:https://mathiasbynens.github.io/rel-noopener/
        
阅读全文
摘要:【justify-content & align-items & align-content】 三个属性均作用于container。 justify-content用于控制main-axis。 align-items用于控制元素在单选中cross-axis中的位置。 align-content用于控
        
阅读全文
摘要:【Flex Basis与Width的区别】 Flex Items的应用准则 Flex Items的应用准则 content –> width –> flex-basis (limted by max|min-width)也就是说, 如果没有设置flex-basis属性,那么flex-basis的大小
        
阅读全文
摘要:【flex-direction】 The flex-direction CSS property specifies how flex items are placed in the flex container defining the main axis and the direction 参考
        
阅读全文
摘要:【flex-grow】 指定宽度所占比,如一个flex中有三个item,这三个item的flex-grow均为1,则每个item占比为33.33%,如果一个是1,两个为2,则占比为20%,40%,40%。 参考:https://developer.mozilla.org/en-US/docs/Web
        
阅读全文
摘要:【Push API】 The Push API gives web applications the ability to receive messages pushed to them from a server, whether or not the web app is in the fore
        
阅读全文
摘要:【ServiceWorker.state】 ServiceWorker.state The state read-only property of the ServiceWorker interface returns a string representing the current state 
        
阅读全文
摘要:【Using Service Workers】 1、This is an experimental technology Because this technology's specification has not stabilized, check the compatibility table
        
阅读全文
摘要:【Promise.then】 1、If onFulfilled returns a promise, the return value of then will be resolved/rejected by the promise. 如果then的handler中返回一个promise(叫A),那
        
阅读全文
摘要:【Promise()】 The constructor is primarily used to wrap functions that do not already support promises. executor A function that is passed with the argu
        
阅读全文
摘要:【Using promises】 过去,异步方法这样写: function successCallback(result) { console.log("It succeeded with " + result); } function failureCallback(error) { consol
        
阅读全文
摘要:【node-rsa】 引用 生成一个私钥长度为512的key(同时生成公钥) 使用公钥加密(当然,加密都是指用公钥加密) 使用私钥解密(当然,解密都是指用私钥解密) 导出公钥、私钥 导入公钥、私钥 参考:https://www.npmjs.com/package/node-rsa
        
阅读全文
摘要:【async.waterfall】 if any of the tasks pass an error to their own callback, the next function is not executed, and the main callback is immediately cal
        
阅读全文
摘要:【async.series】 series适用于顺序执行异步且前后无关联的调用。对于顺序执行异步且前后有叛逆的调用,则需要使用waterfall。 If any functions in the series pass an error to its callback, no more functi
        
阅读全文