* base相关 - CreateSymbolTool > const {CreateSymbolTool}=require("@incpad/base-tool")
published 1.0.26 5 years ago```$xslt const {Validator, initValidatorWithFile} = require("@incpad/validator") initValidatorWithFile("./validator.schema.js"); ``` 导入的js文件应该像这样的: ```$xslt module.exports = { schemaList: { testSchema: { code: {
published 0.0.27 5 years ago```$xslt const ErrorHandle = require('./packages/error-handle'); const list=[ { code: 1001, msg: 'Path not valid', name: 'PathNotValid', } ] const ErrorHandleInstance=new ErrorHandle()
published 1.0.26 5 years ago* base模块 > ```const base=require("@incpad/react-native-tools/tools/base")``` or > ```const {base}=require("@incpad/react-native-tools")``` * base.isAndroid():是否为安卓平台 * base.isIOS():是否为ios平台 * base.isIphoneX():是否为iPhoneX机型
published 1.0.18 5 years ago对于普通node程序来说,由于允许随时调用require注入,所以只需要如此: ```$xslt const {need} =require("@incpad/need") const _=need("lodash") _.get({},"xxx") ``` 如果传入第二个参数,即给与指定的上下文,如果第二个参数是个对象, 便会将该库注入到对应的对象中 ```$xslt const {need} =require("@incpad/need") let test={} need("lodash",test
published 1.0.22 5 years agoNow I’m the model of a modern major general / The venerated Virginian veteran whose men are all / Lining up, to put me up on a pedestal / Writin’ letters to relatives / Embellishin’ my elegance and eloquence / But the elephant is in the room / The truth i
published 1.0.22 5 years ago