kaola-fed / octoparse Goto Github PK
View Code? Open in Web Editor NEWoctoparse是一款html解析转换工具。可以将html解析成对象并转换成其他文本。支持html转微信小程序、支付宝小程序与百度小程序。
License: MIT License
octoparse是一款html解析转换工具。可以将html解析成对象并转换成其他文本。支持html转微信小程序、支付宝小程序与百度小程序。
License: MIT License
https://developers.weixin.qq.com/miniprogram/dev/reference/wxml/list.html#wx:key
没去看其他小程序的文档。目前不影响使用就是控制台会有 Warning。
您好😊
仓库的例子中提供了几种小程序里绑定事件的方式
尝试着在megalo中使用的时候无法绑定事件
请问有例子可以参考吗 或者有没有相关的文档供翻阅
谢谢
I get "path not found" error but I'm sure the path is correct:
~/myproject/pages/index$ ls ../../node_modules/octoparse/lib/platform/wechat/index.wxml
../../node_modules/octoparse/lib/platform/wechat/index.wxml
How can I fix it ?
VM77397:5 ./pages/index/index.wxml
Path `../../node_modules/octoparse/lib/platform/wechat/index.wxml` not found from `./pages/index/index.wxml`.
> 1 | <import src="../../node_modules/octoparse/lib/platform/wechat/index.wxml"/>
| ^
2 | <view class="octoParse">
3 | <template is="octoParse" data="{{nodes:htmlData}}"/>
4 | </view>
支持本地图片吗?
比如说:
<div>foo<img src="../../pics/pic01.jpg">bar</div>
标签里面的文字 两边被自动加上了换行或空格导致行高很高
强制设置white-space:nowrap; 会单行正常, 但无法适用于多行内容
而且内部文字中 左边加6个换行, 右边加4个 导致文字偏右
打包配置如下:
// rollup.config.js
import commonjs from 'rollup-plugin-commonjs';
export default {
input: 'index.js',
output: {
file: 'bundle.js',
format: 'es'
},
plugins: [ commonjs() ]
};
然后执行命令 rollup --config rollup.config.js
得到bundle.js文件如下:
var octoParse = require('./lib/index').default;
exports.octoParse = octoParse;
export default octoParse;
原因可能是 index.js 文件混用commonjs和ESM语法,导致rollup无法提取依赖
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.