Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何去除组件的默认点击事件 #310

Open
JZDKG opened this issue Jan 20, 2025 · 1 comment
Open

如何去除组件的默认点击事件 #310

JZDKG opened this issue Jan 20, 2025 · 1 comment

Comments

@JZDKG
Copy link

JZDKG commented Jan 20, 2025

//获取应用实例
const app = getApp();
Page({
data: {
isLoading: true, // 判断是否尚在加载中
article: {} // 内容数据
},
onLoad: function () {
let result = app.towxml(# Markdown,'markdown',{
base:'https://xxx.com', // 相对资源的base路径
theme:'dark', // 主题,默认light
events:{ // 为元素绑定的事件方法
tap:(e)=>{
console.log('tap',e);
}
}
});

	// 更新解析数据
	this.setData({
		article:result,
		isLoading: false
	});
	
}

})
如何移出events:{ // 为元素绑定的事件方法
tap:(e)=>{
console.log('tap',e);
}
}

@sbfkcel
Copy link
Owner

sbfkcel commented Jan 21, 2025

在 config 中将所有的事情去掉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants