otizis

Results 6 comments of otizis

```javascript Vue.component('currency-input', { template: '\ \ $\ \ \ ', props: ['value'], methods: { // 不是直接更新值,而是使用此方法来对输入值进行格式化和位数限制 updateValue: function (value) { var formattedValue = value // 删除两侧的空格符 .trim() // 保留 2...

不知道大家都用什么框架了呢

遇到了,苦苦研究三天,找到一个方法,添加下面的代码可以做到:当选择内容跨页时,取消框选 在contents.js 的 addSelectionListeners 方法里添加事件监听 ``` this._onSelectionChange = this.onSelectionChange.bind(this); this.document.addEventListener("selectionchange", this._onSelectionChange, { passive: true }); // 添加下面的方法 this.document.addEventListener("selectstart", (event)=>{ const targetNode = document.querySelector(".epub-container"); const sourceLeft = targetNode.scrollLeft targetNode.style.overflow = "auto";...

作者好像不更新了啊

work with maven-jar-plugin , manifest file will lost , how to fixed it?

com.juvenxu.portableconfig.traverser.JarTraverser need update --> ``` JarInputStream jarInputStream = new JarInputStream(new FileInputStream(jar)); **Manifest manifest = jarInputStream.getManifest();** File tmpJar = File.createTempFile(Long.toString(System.nanoTime()), ".jar"); getLogger().info("Tmp file: " + tmpJar.getAbsolutePath()); **JarOutputStream jarOutputStream = null; if(manifest!=null){...