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

真机渲染某些 Markdown 的时候出现 SyntaxError Unexpect EOF 错误 #7

Closed
lzwjava opened this issue Jan 18, 2017 · 5 comments
Closed

Comments

@lzwjava
Copy link

lzwjava commented Jan 18, 2017

比如渲染下面这个文本的时候:

## 感谢大家,上期629人参与了

## 这次直播大纲

今晚再开一期。讲讲最近学到的:

1. 用户登录,微信要求过程非常安全,分为明文数据和敏感数据,这一部分搞了半天,比较难懂,讲讲
2. 本地存储,微信本地存储的 API
3. 直播技术,如何在小程序弄直播

![login1.png](http://i.quzhiboapp.com/AJ0B8j)


# 最近的进展

## 报名页面

![small2.jpeg
](http://i.quzhiboapp.com/5K1dzP)

## 小程序里看直播

![smallapp.jpeg](http://i.quzhiboapp.com/wEMOst)

# 上期直播情况

![xi1.jpeg](http://i.quzhiboapp.com/pXgJXq)

![xi2.jpeg](http://i.quzhiboapp.com/1RKHm1)

![xi5.jpeg](http://i.quzhiboapp.com/FvxJKC)

![xi6.jpeg](http://i.quzhiboapp.com/vJ5BS3)


真机上出现错误:

wechatimg3951

虽然 Markdown 能显示,但这会导致页面的其它 JS 执行失败。比如其它不相关的元素显示不了。

求教~~

@TooBug

@TooBug
Copy link
Owner

TooBug commented Jan 19, 2017

有试过屏蔽页面其它部分吗?确定是remark导致的?

@TooBug
Copy link
Owner

TooBug commented Jan 19, 2017

查了一下,这个会不会是其它地方JSON解析的问题?

@lzwjava
Copy link
Author

lzwjava commented Jan 19, 2017

确实,应该是其他地方 json 的问题。wx.request 之后解析不对的问题,我再看看吧。感谢回复哈。

@lzwjava lzwjava closed this as completed Jan 19, 2017
@lzwjava
Copy link
Author

lzwjava commented Jan 20, 2017

image

找到问题了,把文本粘贴到 JSBIN 上发现有个小红点,不可见字符,去掉就行了。调试正常,微信浏览器真机会出现错误~~

http://stackoverflow.com/questions/12719859/no-visible-cause-for-unexpected-token-illegal

还是感谢作者~~错怪 Wemark 了哈。Wemark 很赞,👍 ~~

@TooBug
Copy link
Owner

TooBug commented Jan 20, 2017 via email

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