0.0.2 • Published 4 years ago

copy-list v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

CopyList

将list中的数据复制到剪切板

npm.io npm.io npm.io

Installation


	$ npm install copy-list

Or

	$ yarn add copy-list

Usage

	import CopyList from 'copy-list';
	
	const list = [
		{
			name: 'zhang si rui',
			age: 19,
			height: 176.2
		},
		{
			name: 'li fo',
			age: 18,
			height: 180.4
		},
		{
			name: 'wang fa wu',
			age: 19,
			height: 179.1
		}
	];
	
	function onClick(){
		const result = CopyList(list, ['name', 'age', 'height']);
		if (result) {
			console.log('success');
		} else {
			console.log('error');
		}
	}
	
0.0.2

4 years ago

0.0.1

4 years ago