bui upload pictures, upload albums Notes

1. console input bui.currentPlatform to see what project-based platforms such as: bingotouch

2. If bingotouch,  in index.js arranged or elsewhere, with the phrase bui.config.upload = {needNative: true}, will use the native manner, and the final link of the job is run internet

3. You can create buijs create -p bingotouch project, the introduction of the order of reference index.html index.js before calling bingotouch methods (general link platforms such projects are created, thus reducing a lot of trouble)

4. Multi-page development, to amend the _config.js there, will upload all valid bui.config.upload = {needNative: true}

5. To ensure that updated to version just created the platform (bingotouch) ------- executable buijs update -p bingotouch updated platform

6. config.js documents which bui.debug = false; it is packaged native transfer switch, the new version is bui.isWebapp = false; after false, behind the original to be effective

Example:
// bui.debug is true, if not get the data, make sure that has turned Google cross-domain;
// bui.debug is false, we will request the use of native method, check the page has not been introduced Cordova.js and bingotouch.js;
bui.debug = false;

// Web site configuration
var sitePath = "http://eid.bingosoft.net:82",
    siteDir = sitePath + "/bui/demo/json/";

// initialize need to use micro-channel
weixinConfig {var =
    appId : "",
    appSecret : ""
}
bui.config.upload = { needNative:true }

Guess you like

Origin www.cnblogs.com/chchchc/p/11939041.html