문제

What would you do if your site visitors disabled JavaScript? Do you block them?

도움이 되었습니까?

해결책

Ideally, you would use progressive enhancement which entails guaranteeing a base user experience and then adding all the flourishes for browsers that can handle them.

다른 팁

you would degrade gracefully.

Indeed degrade gracefully. If that's not an option (anymore ;-)) then at least notify them with utilizing a <noscript> tag.

Use the NoScript tag to say "Hey, Enable Javascript fool!"

<script type="text/javascript">
       alert("Hello World!");
</script>
<noscript> 
       Hey, Enable Javascript fool!
</noscript>

(Please note that this is code is not ready deployment to your website. You can change the message to something more suitable than plain text.)

NSDate 여야합니다.코코아의 세계에서는 특정 일정이나 표현과 관련이 없으므로 정확한 즉시 순간적입니다.

라고하는 논리를 사용하여 클래스의 인스턴스 변수로 저장하고 응용 프로그램 시작간에 지속되도록 원하는 경우 NSUserDefaults에서 다시 읽을 수 있습니다.

Your website should be somewhat prepared if JavaScript is disabled, either display a message that your website works better with JavaScript enabled or work-around it.

For every site I build, I compare the cost of development for degrading gracefully, versus the loss of income by scaring off ~2-3% of the audience. Not caring about non-javascripters/Opera/etc usually wins...

If your visitors didn't know they have JavaScript disabled, a simple message would let them know they should enable it.

<noscript>Please enable JavaScript in your browser</noscript>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top