h-wx-js
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

h-wx-js

Install

npm install h-wx-js

or

yarn add h-wx-js

ES Module

Example for how to import the ES module from another module:

import hwx from "h-wx-js";

hwx.watchInput(); // Global listening input

or

import { watchInput } from "h-wx-js";

watchInput();
<!-- vue -->
<div>
	<input v-model="value" @blur="changeScroll" />
</div>


<script>

import { fixScroll } from "h-wx-js";

export default {
	data () {
		return {
			value: ""
		}
	},
	methods: {
		changeScroll: function () {
			fixScroll();
		}
	}
}

</script>

init font-size

// main.js

import { initFontSize } from "h-wx-js";

initFontSize();

Dependencies (0)

    Dev Dependencies (13)

    Package Sidebar

    Install

    npm i h-wx-js

    Weekly Downloads

    0

    Version

    1.1.3

    License

    MIT

    Unpacked Size

    8.65 kB

    Total Files

    12

    Last publish

    Collaborators

    • haojs-next