# js组件使用模板 **Repository Path**: yoonaLin/upload-js-component-template ## Basic Information - **Project Name**: js组件使用模板 - **Description**: upload-js-component-template-use,js组件使用简单模板,理解ji库引入的使用流程与组件上传的代码结构 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-07-08 - **Last Updated**: 2023-09-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## Install Install with [npm](https://www.npmjs.com/): ```sh $ npm install --save lzjnpm-publish-test ``` ## Usage ```js var forIn = require('lzjnpm-publish-test'); var obj = {a: 'foo', b: 'bar', c: 'baz'}; var values = []; var keys = []; forIn(obj, function (value, key, o) { keys.push(key); values.push(value); }); console.log(keys); //=> ['a', 'b', 'c']; console.log(values); //=> ['foo', 'bar', 'baz']; ```