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

baseTitle 赋值不变 #41

Open
shizhipeng opened this issue Jan 4, 2022 · 0 comments
Open

baseTitle 赋值不变 #41

shizhipeng opened this issue Jan 4, 2022 · 0 comments

Comments

@shizhipeng
Copy link

stateFn = State.prototype.state;

document.title = cur.getTitle( options ) || baseTitle ;

这个 baseTitle 作为 document.title 的赋值,即使后续 document.title 变化了,baseTitle 是不变的,希望 document.title = cur.getTitle( options ) || ocument.title || baseTitle

@shizhipeng shizhipeng changed the title baseTitle 引用赋值不变 baseTitle 赋值不变 Jan 4, 2022
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

1 participant